# sessions

**URL:** <https://discuss.rubyonrails.org/t/sessions/51359>\
**Category:** rubyonrails-talk\
**Created:** [May 3, 2010, 6:10am UTC](https://discuss.rubyonrails.org/t/sessions/51359 "2010-05-03T06:10:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![11155](https://avatars.discourse-cdn.com/v4/letter/1/d26b3c/32.png) [@11155](https://discuss.rubyonrails.org/u/11155)\
**Post date:** [May 3, 2010, 6:10am UTC](https://discuss.rubyonrails.org/t/sessions/51359/1 "2010-05-03T06:10:32Z")

</div>

hi all,

in my application i have to maintain the user information in session and updates the table flag when the user logins and while loggingout i change the flag to zero.

i want to delete the stale sessions and while doing this i want to perform operation on tables how to do this.

Please let me know

Regards, Rajkumar.surabhi
