<<

NAME

Koha::Session - Session class for Koha

SYNOPSIS

  use Koha::Session;
  my $session = Koha::Session->get_session({ sessionID => $sessionID});

DESCRIPTION

This simple class exposes some basic methods for managing user sessions.

METHODS

get_session

  my $session = Koha::Session->get_session({ sessionID => $sessionID});

Given a session ID, retrieves the CGI::Session object used to store the session's state. The session object can be used to store data that needs to be accessed by different scripts during a user's session.

If the $sessionID parameter is an empty string, a new session will be created.

<<