Class: SessionManager_Simple

Handles INI files of the format:

value1=
value2=
value3=



Properties


$access = array ()


$status = array ()


$roles = array ()


$teams = array ()


$resources = array ()


$user = array ()


$prefs = array ()


$_prefs = array ()


$path


$realm


$cancelmessage = 'You do not have permission to access this resource.'


$cookiename = 'sitellite_session_id'

  • Access: public

Name of the cookie. Defaults to 'sitellite_session_id'.


$cookieexpires = 0

  • Access: public

Expiration of cookie. Defaults to 0, which means the cookie
will expire when the browser closes.


$cookiedomain

  • Access: public

Domain value of the cookie.


$cookiepath = '/'

  • Access: public

Path value of the cookie. Defaults to '/'.


$cookiesecure = 0

  • Access: public

Secure value of the cookie. May be 1 or 0, and defaults to 0.


$usernamefield = 'username'

  • Access: public

The name of the username field in the form (uses saf.MailForm)
created by sendAuthRequest(). Defaults to 'username'.


$passwordfield = 'password'

  • Access: public

The name of the password field in the form
created by sendAuthRequest(). Defaults to 'password'.


$hiddenfields = array ()

  • Access: public

A list of hidden form fields and their values.


$usernametext = 'Username'

  • Access: public

The alt text of the username field in the form
created by sendAuthRequest(). Defaults to 'Username'.


$passwordtext = 'Password'

  • Access: public

The alt text of the password field in the form
created by sendAuthRequest(). Defaults to 'Password'.


$submittext = 'Sign In'

  • Access: public

The alt text of the submit button in the form
created by sendAuthRequest(). Defaults to 'Sign In'.


$formtemplate = false

  • Access: public

The template of the form created by sendAuthRequest().
Defaults to false (no template).


$usernamerules = array ()

  • Access: public

A list of rules for the username form field. The keys are
the rules and the values are the invalid messages.


$passwordrules = array ()

  • Access: public

A list of rules for the password form field. The keys are
the rules and the values are the invalid messages.


$formmessage = 'Please enter your username and password.'

  • Access: public

The welcome message of the form. Defaults to
'Please enter your username and password.'


$invalidmessage = 'Sorry, the password you specified was invalid. Please try again.'

  • Access: public

The invalid message of the form. Defaults to
'Sorry, the password you specified was invalid. Please try again.'


$timeoutmessage = 'Sorry, your session has timed out.  Please sign in again to continue.'

  • Access: public

The timeout message of the form. Defaults to
'Sorry, your session has timed out. Please sign in again to continue.'


$sessObj

  • Access: public

A reference to the main session object, in case it's
needed by a specific handler.


$error

Error message, if an error occurs.


$total

Number of users.


$dir = 'inc/conf/auth/roles'

Directory to store info.


$data = array ()

Parsed data from file.


$file

File to store info.

Return to Top



Methods


SessionManager_Simple ()

Constructor method.


getData ()

Retrieves the data from $file and stores it in $data.


getList ()

  • Return: array

Returns an array of the data.


add ($name)

  • Return: boolean

Adds an item to $data and rewrites the INI file.


edit ($name, $newname)

  • Return: boolean

Renames an item in $data and rewrites the INI file.


delete ($name)

  • Return: boolean

Deletes an item from $data and rewrites the INI file.

Return to Top

Copyright © 2008 Sitellite CMS Project

Powered by Sitellite 5.0 Content Management System