forked from saurabh/orbit4-5
update session time
This commit is contained in:
parent
731b55249d
commit
5d11d95ca9
|
@ -11,7 +11,7 @@ class ApplicationController < ActionController::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def timeout_in
|
def timeout_in
|
||||||
session[:last_request_at] = Time.now
|
session[:last_request_at] = Time.now if !session[:user_id].blank?
|
||||||
end
|
end
|
||||||
|
|
||||||
def timedout
|
def timedout
|
||||||
|
|
Loading…
Reference in New Issue