Solstice::Session - Manage a Solstice Tools session.


Solstice documentation  | view source Contained in the Solstice distribution.

Index


NAME

Top

Solstice::Session - Manage a Solstice Tools session.

SYNOPSIS

Top

  use CGI;
  use Solstice::Session;

  my $session = Solstice::Session->new;

  #or, if you'd like to use a custom session name for the cookie
  my $session = Solstice::Session->new('custom_name');

  my $cookie = $session->cookie();
  print CGI->header(-cookie => $cookie);

  ## To retrieve the session information
  my $session = Solstice::Session->new;
  $session->set('mydata', $mydata);
  $session->get('mydata');

DESCRIPTION

Top

Export

No symbols exported.

Methods

new()

Constructor. Values for $cookie_name and $database_name are provided by the configuration file if they are not specified in the constructor.

hasSession

Returns true if the user is reporting a session ID

getSessionID
getSubsessionID
getSubsessionChainID
setCookie()
getCookie()
getCookieName()
get( $key )
set($key , $val)

Sets the session object's passed attribute to a value.

fields()
setUser($person)
getUser()
setOriginalUser($person)
getOriginalUser()
setHasJavascript
hasJavascript()
getIllegalSession()
getLoginTime() =cut

sub getLoginTime { my $self = shift; return $self->{'_solstice_login_time'}; }

sub setLoginTime { my $self = shift; $self->{'_solstice_login_time'} = shift; }

loadSubsession()
clear()
deleteSubsessionChain

For use when the user should not be able to back up to a previous state.

_getDefaultCookieName()
_generateSessionID

Create a new Cookie with name $cookie_name and set it

AUTHOR

Top

Catalyst Group, <catalyst@u.washington.edu>

VERSION

Top

$Revision: 3364 $

COPYRIGHT

Top


Solstice documentation  | view source Contained in the Solstice distribution.