Home       Servicebereich  Projekte  Kontakt  

OX::SessionD


NAME OX:SessionD - Access the Open-Xchange session daemon

Session


SYNOPSIS

    use C<OX::SessionD>;
    $OXd = new OX::SessionD( 'host' => 'localhost', 'port' => 33333)


DESCRIPTION


METHODS

new([%params])

 Constructor of the OX::SessionD class. The optional %params hash
 contains the host (host =>)and port (port =>) parameters and will be
 set to the default values 'localhost' and '33333'.

getSessions()

  Returns a hash array ( 'sid' => $obj ) with OX::Session objects.

checkUser($uid)

  Checks if the user with $uid exists. Returns a true value if
  successful.

report()

  Forces the session daemon to write session data to logfile. Returns
  a true value if successful.

login($login,$passwd,$remoteip,$hostname,$lang)

  This method performs an authentication request. If successful an
  openexchange session will be established. If successful, a
  OX::Session object will be returned, otherwise undef.
  The parameters are:
     uid      - user id
     passwd   - password (cleartext)
     remoteip - ip address of the clients host
     hostname - name of the virtual host
     lang     - language (default: DE)
  Returns a OX::Session object.

getSession($sid)

   Loads the data of the session assigned to $sid. Returns the
   OX::Session object.

ping($sid)

  Resets the timeout of the OX session with the given session
  id. Returns a true value if successful.

logoff($sid)

  Stopps the current session (logoff). Returns a truve value if
  successful.


BUGS

Bugs? Features!


SEE ALSO

perl(1)


< zurück  | weiter >