Class: HubSsoLib::Session

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initializeSession

Returns a new instance of Session.



445
446
447
448
449
450
451
452
453
454
455
# File 'lib/hub_sso_lib.rb', line 445

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_flashObject

Returns the value of attribute session_flash.



441
442
443
# File 'lib/hub_sso_lib.rb', line 441

def session_flash
  @session_flash
end

#session_last_usedObject

Returns the value of attribute session_last_used.



439
440
441
# File 'lib/hub_sso_lib.rb', line 439

def session_last_used
  @session_last_used
end

#session_return_toObject

Returns the value of attribute session_return_to.



440
441
442
# File 'lib/hub_sso_lib.rb', line 440

def session_return_to
  @session_return_to
end

#session_rotated_keyObject

Returns the value of attribute session_rotated_key.



443
444
445
# File 'lib/hub_sso_lib.rb', line 443

def session_rotated_key
  @session_rotated_key
end

#session_userObject

Returns the value of attribute session_user.



442
443
444
# File 'lib/hub_sso_lib.rb', line 442

def session_user
  @session_user
end