# Howw to delete session data

**URL:** <https://www.ruby-forum.com/t/howw-to-delete-session-data/102621>\
**Category:** Ruby\
**Created:** [December 13, 2006, 3:29pm UTC](https://www.ruby-forum.com/t/howw-to-delete-session-data/102621 "2006-12-13T15:29:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jhonny](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/919ad9/32.png) [@jhonny](https://www.ruby-forum.com/u/jhonny)\
**Post date:** [December 13, 2006, 3:29pm UTC](https://www.ruby-forum.com/t/howw-to-delete-session-data/102621/1 "2006-12-13T15:29:52Z")

</div>

hi friends i had a serious issue for my project actualy as u all know  
whenever we login a entry is added in the sessions tableof our database  
and it re3amins there till we log off

but in case the user clicks the close icon nof the browser (eg, IE or  
mozilla )then in that case the session entry reamins intact

my issue was to delete the entry in either case whether the browser is  
closed or the user logs off

or to delete the entry when the user types the url again, the session  
entry should get regenerated

if u have the solution to my query plz do help me and mail me at  
removed\_email\_address@domain.invalid

i am eagerly waiting ur reply
