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.



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_flashObject

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_ipObject

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_rotationObject

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_usedObject

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_toObject

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_userObject

Returns the value of attribute session_user.



384
385
386
# File 'lib/hub_sso_lib.rb', line 384

def session_user
  @session_user
end