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.



439
440
441
442
443
444
445
446
447
448
449
# File 'lib/hub_sso_lib.rb', line 439

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.



435
436
437
# File 'lib/hub_sso_lib.rb', line 435

def session_flash
  @session_flash
end

#session_last_usedObject

Returns the value of attribute session_last_used.



433
434
435
# File 'lib/hub_sso_lib.rb', line 433

def session_last_used
  @session_last_used
end

#session_return_toObject

Returns the value of attribute session_return_to.



434
435
436
# File 'lib/hub_sso_lib.rb', line 434

def session_return_to
  @session_return_to
end

#session_rotated_keyObject

Returns the value of attribute session_rotated_key.



437
438
439
# File 'lib/hub_sso_lib.rb', line 437

def session_rotated_key
  @session_rotated_key
end

#session_userObject

Returns the value of attribute session_user.



436
437
438
# File 'lib/hub_sso_lib.rb', line 436

def session_user
  @session_user
end