app/models/session_manager.rb
# Renews session expiration for the next 45 minutes if the session is still fresh
Renews session expiration for the next 45 minutes if the session is still fresh
Renews session expiration for the next 45 minutes if the session is still fresh
def refresh!
    identity = @session[:identity]
    if signed_in? && identity['expires_at'] < SessionManager.identity_lifetime.from_now 
      identity['expires_at'] = SessionManager.identity_lifetime.from_now
    end
  end
def refresh! identity = @session [ :identity ] if signed_in? && identity [ 'expires_at' ] < SessionManager . identity_lifetime . from_now identity [ 'expires_at' ] = SessionManager . identity_lifetime . from_now end end
Renews session expiration for the next 45 minutes if the session is still fresh
Renews session expiration for the next 45 minutes if the session is still fresh