NAME

IX::Session - web session management


REQUIREMENTS

IX::Session requires CGI::Session and CGI::Session::MySQL, which in turn requires a table called 'sessions' in the custom application database, as well as the JSON module from CPAN to respond to AJAX calls.


DESCRIPTION

IX::Session handles secure web session management. Session management is a necessary component for a web application to keep track of who is using it from page call to page call. In addition, in the case of applications requiring authentication, session management eliminates the need to prompt for username and password each time the application is invoked.

PACKAGE VARIABLES

IX:Session exposes the following variables that you may use in your custom application:

        $IX::Session::username;
        $IX::Session::first_name;
        $IX::Session::last_name;

The above variables will only have values after a user has authenticated, if your application has authentication turned on.

        $IX::Session::relogin_params_ref;

If a session is deemed invalid, we create a reference which contains name/value pairs we want to re-submit after a successful re-login. This saves the user from 'losing their place'. This variable is not normally used in a custom application, but is exposed to IX so it may be used by IX::Login.