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("www_session:#{sid}")
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
@@ -1,5 +1,5 @@
1
1
  module Session
2
2
  module Check
3
- VERSION = '0.1.1'
3
+ VERSION = '0.1.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: session-check
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: