Restful_authentication log in from controller

Here's my problem. I'm using restful_authentication and recently added
subdomain logins e.g. ( I have a page to create
an account and an admin account in the same page. Both the account and
admin are created. I can call self.current_user =
User.authenticate ... with no problem, I will get back the user. When
it comes to redirecting to another action I have a
before_filter :login_required. This is where it screws up. In that
function there's a get_auth_data... this function returns nil for a
username and password. Any ideas? This functions correctly if I login
from a form calling the create action in my session controller.


Seems like the session[:user] gets cleared right after I redirect ?