[ Index ]

PHP Cross Reference of Eventum

title

Body

[close]

/include/ -> class.session.php (summary)

(no description)

File Size: 140 lines (5 kb)
Included or required: 6 times
Referenced: 0 times
Includes or requires: 2 files
 include/class.error_handler.php
 include/class.setup.php

Defines 1 class

Session:: (6 methods):
  set()
  get()
  is_set()
  init()
  verify()
  destroy()


Class: Session  - X-Ref

Wrapper class for sessions. This is an initial bare bones implementation.
Additional methods will be later as needed.

set($name, $var)   X-Ref
Sets the passed variable in the session using the specified name.

param: string $name Name to store variable under.
param: mixed $var Variable to store in session.

get($name)   X-Ref
Returns the session variable specified by $name

param: string $name The name of variable to be returned.
return: mixed The session variable.

is_set($name)   X-Ref
Returns true if the session variable $name is set, false otherwise.

param: string $name The name of the variable to check.
return: boolean If the variable is set

init($usr_id)   X-Ref
Initialize the session

param: integer $usr_id The ID of the user

verify($usr_id)   X-Ref
Verify that the current request to use the session has the same IP address as the request that started it.

param: integer $usr_id The ID of the user

destroy()   X-Ref
Destroys the current session




Generated: Wed Dec 19 21:21:33 2007 Cross-referenced by PHPXref 0.7