0

In our code we reset session info when the user logs in, so that a new session id is generated. The session info is reset in the application controller during the process of logging in. That reset clears the session id that came in with the login request.

I am unable to determine when a new session id is then generated. Any ideas? THANKS

user1499924
  • 1
  • 1
  • 1
  • Your question is not clear to me, but I think you should read this carefully: http://guides.rubyonrails.org/action_controller_overview.html#session – David Morales Jul 03 '12 at 22:04

1 Answers1

0

Sessions are lazily loaded. If you don’t access sessions in your action’s code, they will not be loaded. Hence you will never need to disable sessions, just not accessing them will do the job.

From http://guides.rubyonrails.org/action_controller_overview.html#session

Meaning as soon as you access the session hash in your code it will be generated.

spas
  • 1,914
  • 14
  • 21