Hi, I''m implementing a switch user function for an application, but I''m having some trouble copying the session and I''m thinking there might be a better way for this. Currently my thinking is that when you switch a user, copy the current users session and store it in a temporary variable. Log in the new user and copy the temporary variable (with the old session) into a session variable. Upon logout, check for this session variable and if present, switch back. I have all this working, but I can''t copy the whole session (using the variable "session"), but I have to copy each element of the session instead. Obviously this does not work since if I add something else to the session, I would have to modify this. Another solution would be to setup a new session and just store and id of the old session that I could just load back upon log out, but I''m not quite sure of the implementation steps of this approach. Maybe there is a good resource somewhere where I can find some good information about how to manipulate session information and how it works. Any ideas? Thanks, Fredrik --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---