views:

164

answers:

1

I'm using Authlogic to authenticate users.

I understand how to create and use sessions, but want to store an additional id variable in the current_user session created by authlogic.

Can I just do something like this:

session[:authlogic_sess_name] = @extra_id.id

However, I'm not sure what the authlogic session is named though or how to access it.

Thanks!

+1  A: 

Why would you not just store the value in the session?

session[:extra] = @extra_id.id

The Authlogic current_user is simply a value in the current session, managed by the Rails stack itself.

Toby Hede
Yeah, I'm doing that now. I guess I was just wanting to know how to manipulate and add stuff to the current_user object. But it's not necessary.
bandhunt