session-check 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -8,7 +8,7 @@ class SessionChecksController < ActionController::Base
|
|
8
8
|
# Find it there is a session, and if it has any warden information. If so, the user is logged in.
|
9
9
|
def time_to_session_expiry
|
10
10
|
sid = request.cookies['_session_id']
|
11
|
-
sess = Redis.current.get("
|
11
|
+
sess = Redis.current.get("#{REDIS_SESSION_NAMESPACE}:#{sid}")
|
12
12
|
render json: {session_exists: (sess && sess.include?('warden'))}
|
13
13
|
end
|
14
14
|
end
|