Thanks Robert for the reply. Nope, not from documentation. Its just
basic thing that if the record is created by rails, it needs to be
cleaned up by rails (why would it need to be cleaned up out of a
different path) ?
I remember reading this stackoverflow comment as well which mentioned
that it should clear on calling reset_session.
http://stackoverflow.com/questions/10088619/how-to-clear-rails-sessions-table%22
"When you call reset_session rails will delete that row from the session
table. However not every session will have reset_session called on it:
if a user closes their browser without logging out then the browser will
discard the session cookie, so that session row will never be used
again, but reset_session won't be called.
Rails won't clear out that accumulating cruft for you - it's up to you
to do any housekeeping on it as you see fit. In a previous job we use to
run a cronjob that deleted old session rows."
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/993bcfc1ab3ff9e28b1a38fd42b1113a%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment