For a login time I am using set_query_var(); and get_query_var(). It is a very nice feature.