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_ip ⇒ Object
Returns the value of attribute session_ip.
-
#session_key_rotation ⇒ Object
Returns the value of attribute session_key_rotation.
-
#session_last_used ⇒ Object
Returns the value of attribute session_last_used.
-
#session_return_to ⇒ Object
Returns the value of attribute session_return_to.
-
#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.
388 389 390 391 392 393 394 395 |
# File 'lib/hub_sso_lib.rb', line 388 def initialize @session_last_used = Time.now.utc @session_return_to = nil @session_flash = {} @session_user = HubSsoLib::User.new @session_key_rotation = nil @session_ip = nil end |
Instance Attribute Details
#session_flash ⇒ Object
Returns the value of attribute session_flash.
383 384 385 |
# File 'lib/hub_sso_lib.rb', line 383 def session_flash @session_flash end |
#session_ip ⇒ Object
Returns the value of attribute session_ip.
386 387 388 |
# File 'lib/hub_sso_lib.rb', line 386 def session_ip @session_ip end |
#session_key_rotation ⇒ Object
Returns the value of attribute session_key_rotation.
385 386 387 |
# File 'lib/hub_sso_lib.rb', line 385 def session_key_rotation @session_key_rotation end |
#session_last_used ⇒ Object
Returns the value of attribute session_last_used.
381 382 383 |
# File 'lib/hub_sso_lib.rb', line 381 def session_last_used @session_last_used end |
#session_return_to ⇒ Object
Returns the value of attribute session_return_to.
382 383 384 |
# File 'lib/hub_sso_lib.rb', line 382 def session_return_to @session_return_to end |
#session_user ⇒ Object
Returns the value of attribute session_user.
384 385 386 |
# File 'lib/hub_sso_lib.rb', line 384 def session_user @session_user end |