ManiaLib 1.0b1 API Reference

 Class SessionEngine

Description

Session engine

Helps handling PHP sessions

Located in /libraries/SessionEngine.class.php (line 13)


	
			
Method Summary
 void delete (string $name)
 boolean exists ( $name)
 mixed get (string $name, [mixed $default = null])
 mixed getStrict (string $name)
 void set (string $name, [mixed $value = null])
Methods
static getInstance (line 31)

Gets the instance

  • access: public
SessionEngine getInstance ()
delete (line 64)

Deletes a session var

void delete (string $name)
  • string $name
exists (line 98)

Checks if the specified session var exists

boolean exists ( $name)
  • $name
get (line 75)

Gets a session var, or the default value if nothing was found

mixed get (string $name, [mixed $default = null])
  • string $name: The name of the variable
  • mixed $default: The default value
getStrict (line 85)

Gets a session var, throws an exception if not found

mixed getStrict (string $name)
  • string $name: The name of the variable
set (line 55)

Sets a session var

void set (string $name, [mixed $value = null])
  • string $name
  • mixed $value