I am maintaining sessions for storing user informations\.
When i logout i clear the session using reset\_session\.
Will the session be available if i kill the rails server?
If yes, Why does this happen and how can i overcome this by
resetting the session?
Well reset_session should kill the session no matter what happens
afterwards.
Other than that, the session store persists across restarts. It pretty
much depends on what your session store is. If it is one of the server
side ones ( activerecord_store, MemcacheStore etc...) then you can
clear it out. If it is the cookie store (the default) then the session
is stored on the user's computer, so you can't delete it. You can
invalidate it by changing your session's secret (make sure you deal
with the exception that gets raised in those cases if you don't want
to confuse your users). Pretty much a manual process which ever store
you use.