# Session expiration

**URL:** <https://www.ruby-forum.com/t/session-expiration/131378>\
**Category:** Rails\
**Created:** [March 9, 2008, 1:13am UTC](https://www.ruby-forum.com/t/session-expiration/131378 "2008-03-09T01:13:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![brewpoo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/b5a626/32.png) [@brewpoo](https://www.ruby-forum.com/u/brewpoo)\
**Post date:** [March 9, 2008, 1:13am UTC](https://www.ruby-forum.com/t/session-expiration/131378/1 "2008-03-09T01:13:36Z")

</div>

I recently moved to memcache for session management and I am very  
happy with the performance.

However, I need a way to trigger methods when a user is logged out,  
including when the session timer expires. I can think of a few ways  
to do this when using file and ActiveRecord sessions, but is there a  
way to do this with memcache, or better yet a method that is not  
dependent on the session store.

Any ideas?

Thanks,  
Jon
