ZenMagick 0.9.10


org.zenmagick.mvc.session\ZMSessionHandler
mvc\session\ZMSessionHandler.php at line 30

Interface ZMSessionHandler

ZMSessionHandler

public interface ZMSessionHandler

Simple session handler interface.

Author:
DerManoMann

Method Summary
void

close()

Close session handling.

void

destroy(string id)

Destroy session.

void

gc(int lifetime)

Garbage collection callback.

void

open(string path, string name)

Open session handling.

void

read(string id)

Read session.

void

setExpiryTime(mixed expiryTime, int expiry)

Set the expiry time.

void

write(string id, mixed data)

Write session.

Method Detail

mvc\session\ZMSessionHandler.php at line 71

close

public void close()

Close session handling.


mvc\session\ZMSessionHandler.php at line 59

destroy

public void destroy(string id)

Destroy session.

Parameters:
id - The session id.

mvc\session\ZMSessionHandler.php at line 66

gc

public void gc(int lifetime)

Garbage collection callback.

Parameters:
lifetime - The lifetime.

mvc\session\ZMSessionHandler.php at line 37

open

public void open(string path, string name)

Open session handling.

Parameters:
path - The save path.
name - The session name.

mvc\session\ZMSessionHandler.php at line 44

read

public void read(string id)

Read session.

Parameters:
id - The session id.

mvc\session\ZMSessionHandler.php at line 78

setExpiryTime

public void setExpiryTime(mixed expiryTime, int expiry)

Set the expiry time.

Parameters:
expiry - The expiry time for sessions.

mvc\session\ZMSessionHandler.php at line 52

write

public void write(string id, mixed data)

Write session.

Parameters:
id - The session id.
data - The session data.

ZenMagick 0.9.10