> > in my application, i have login form. while login into the application > iam maintaning the details in session. i want to remove the stale > sessions and while removing the stale sessions i want to perform some > operattions on database . how to do this. >
How are the sessions stored? The default now is Cookie store, so you can't easily delete all sessions. If you're using file store, you can just remove all files in the folder, if your using a DB store you can truncate the table. The other way is to have a version field checked/set in a filter in your application and empty any incoming session requests if they don't have the right version. It won't delete them all immediately, but at the time they're being used. Cheers, Andy -- 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-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.