mirror of
https://github.com/heartcombo/devise.git
synced 2026-04-06 03:01:21 -04:00
Introducing timeoutable to timeout sessions without activity.
This commit is contained in:
@@ -4,4 +4,14 @@ class UsersController < ApplicationController
|
||||
def index
|
||||
user_session[:cart] = "Cart"
|
||||
end
|
||||
|
||||
def new
|
||||
user_session['last_request_at'] = 11.minutes.ago.utc
|
||||
render :text => 'New user!'
|
||||
end
|
||||
|
||||
def edit
|
||||
user_session['last_request_at'] = 9.minutes.ago.utc
|
||||
render :text => 'Edit user!'
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user