Class Session

Description

Provides a way to identify a user across more than one page request or visit to a Web site and to store information about that user.

Wraps PHP's functions and global arrays to emulate Java's HttpSession interface.

Located in /diy-framework/controller/Session.class.php (line 12)


	
			
Method Summary
Session __construct ()
mixed getAttribute (string $name)
int getID ()
void setAttribute (string $name, string $value)
Methods
Constructor __construct (line 21)

Constructs Session (starts it and gives it an ID).

  • access: public
Session __construct ()
getAttribute (line 44)

Returns a session attribute, or null if it does not exist.

  • return: Attribute
  • access: public
mixed getAttribute (string $name)
  • string $name: Name of the attribute
getID (line 33)

Returns session ID.

  • return: Session ID
  • access: public
int getID ()
setAttribute (line 58)

Sets a session attribute.

  • access: public
void setAttribute (string $name, string $value)
  • string $name: Name of the attribute
  • string $value: Value of the attribute

Documentation generated on Tue, 25 Sep 2007 11:17:23 +0200 by phpDocumentor 1.3.2