SymfonyComponentHttpFoundationSessionStorageHandlerNullSessionHandler

NullSessionHandler.

Can be used in unit testing or in a situations where persisted sessions are not desired.

Summary

No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A
File
vendorSymfonyComponentHttpFoundationSessionStorageHandlerNullSessionHandler.php
Package
Default
Class hierarchy
SymfonyComponentHttpFoundationSessionStorageHandlerNullSessionHandler
Implements
SessionHandlerInterface

Tags

author

Drak drak@zikula.org

api

Methods

open()

open(string  $savePath, string  $sessionName) : boolean

Open session.

Parameters

string $savePath

Save path.

string $sessionName

Session Name.

Returns

boolean

Tags

None found

close()

close() : boolean

Close session.

Returns

boolean

Tags

None found

read()

read(string  $sessionId) : string

Read session.

Parameters

string $sessionId

Returns

string —

String as stored in persistent storage or empty string in all other cases.

Tags

None found

write()

write(string  $sessionId, string  $data) : boolean

Commit session to storage.

Parameters

string $sessionId

Session ID.

string $data

Session serialized data to save.

Returns

boolean

Tags

None found

destroy()

destroy(string  $sessionId) : boolean

Destroys this session.

Parameters

string $sessionId

Session ID.

Returns

boolean

Tags

None found

gc()

gc(integer  $lifetime) : boolean

Garbage collection for storage.

Parameters

integer $lifetime

Max lifetime in seconds to keep sessions stored.

Returns

boolean

Tags

None found