vimal
2009-Apr-06 07:33 UTC
How to reset session if rails server is killed abruptly using Ctrl-c
Hi, I have some user informations stored in the session. If i use Ctrl-c to kill the rails server and restart the server, the informations remains in the session I want the session informations gone, once i restart the server Any suggestions? Regards, Vimal Das --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Frederick Cheung
2009-Apr-06 07:49 UTC
Re: How to reset session if rails server is killed abruptly using Ctrl-c
On Apr 6, 8:33 am, vimal <cool.vimalsm...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, > > I have some user informations stored in the session. > If i use Ctrl-c to kill the rails server and restart the server, the > informations remains in the session > I want the session informations gone, once i restart the server > Any suggestions? >If you are using the cookie store the user session is stored on the user''s computer, so the only thing you can do is change the session secret. With the other stores it depends on the stores, eg if you use the database store then delete the rows in the sessions table. Fred> Regards, > Vimal Das--~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---