session-check 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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
|