Class: HubSsoLib::Session
- Inherits:
-
Object
- Object
- HubSsoLib::Session
- Includes:
- DRb::DRbUndumped
- Defined in:
- lib/hub_sso_lib.rb
Overview
Class: Session #
(C) Hipposoft 2006 #
#
Purpose: Session support object, used to store session metadata in #
an insecure cross-application cookie. #
#
Author: A.D.Hodgkinson #
#
History: 22-Oct-2006 (ADH): Created. #
Instance Attribute Summary collapse
-
#session_flash ⇒ Object
Returns the value of attribute session_flash.
-
#session_last_used ⇒ Object
Returns the value of attribute session_last_used.
-
#session_return_to ⇒ Object
readonly
DEPRECATED.
-
#session_rotated_key ⇒ Object
Returns the value of attribute session_rotated_key.
-
#session_user ⇒ Object
Returns the value of attribute session_user.
Instance Method Summary collapse
-
#initialize ⇒ Session
constructor
A new instance of Session.
Constructor Details
#initialize ⇒ Session
Returns a new instance of Session.
427 428 429 430 431 432 433 434 435 436 437 |
# File 'lib/hub_sso_lib.rb', line 427 def initialize @session_last_used = Time.now.utc @session_return_to = nil @session_flash = {} @session_user = HubSsoLib::User.new @session_rotated_key = nil rescue => e Sentry.capture_exception(e) if defined?(Sentry) && Sentry.respond_to?(:capture_exception) raise end |
Instance Attribute Details
#session_flash ⇒ Object
Returns the value of attribute session_flash.
423 424 425 |
# File 'lib/hub_sso_lib.rb', line 423 def session_flash @session_flash end |
#session_last_used ⇒ Object
Returns the value of attribute session_last_used.
421 422 423 |
# File 'lib/hub_sso_lib.rb', line 421 def session_last_used @session_last_used end |
#session_return_to ⇒ Object (readonly)
DEPRECATED
422 423 424 |
# File 'lib/hub_sso_lib.rb', line 422 def session_return_to @session_return_to end |
#session_rotated_key ⇒ Object
Returns the value of attribute session_rotated_key.
425 426 427 |
# File 'lib/hub_sso_lib.rb', line 425 def session_rotated_key @session_rotated_key end |
#session_user ⇒ Object
Returns the value of attribute session_user.
424 425 426 |
# File 'lib/hub_sso_lib.rb', line 424 def session_user @session_user end |