Expire rails session variable -


based on answer: rails cookies, set start date , expire date

i attempted same session variable:

session[:token] = { :value => @ticket.token, :expires => 1.minute.from_now }  

however, variable continues available after 1 minute. ideas?

where storing session?

check below guidance on choosing store session, not session stores implement expiry.

http://guides.rubyonrails.org/action_controller_overview.html#session

setting session timeout in rails 3


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -