Smutty


Smutty.Smutty_Session

Class Smutty_Session

Smutty_Object
|
+--Smutty_Session

public class Smutty_Session
extends Smutty_Object

this class handles sessions within smutty. it's basically just a wrapper around the $_SESSION object, and uses php's builtin session handling functions.

/


Field Summary
mixed

$user

the current user */

Method Summary
static Smutty_Session

getInstance()

returns the instance of the session class

private nothing

init()

initializes the session object, setting things like cookie paths and handling a user

nothing

save()

saves the data to the session object

private nothing

tryAuth()

tries to authenticate a user.

Field Detail

user

public mixed $user

the current user */


Method Detail

getInstance

public static Smutty_Session getInstance()

returns the instance of the session class

Returns:
the singleton
Go to code

init

private nothing init()

initializes the session object, setting things like cookie paths and handling a user

Go to code

save

public nothing save()

saves the data to the session object

Go to code

tryAuth

private nothing tryAuth()

tries to authenticate a user. if the authentication succeeds then the $user property will be set accordingly.

Go to code

Smutty