downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

SessionHandlerInterface::read> <SessionHandlerInterface::gc
[edit] Last updated: Wed, 22 May 2013

view this page in

SessionHandlerInterface::open

(PHP 5 >= 5.4.0)

SessionHandlerInterface::openInitialise la session

Description

abstract public bool SessionHandlerInterface::open ( string $save_path , string $name )

Ré-initialise une session existante ou en crée une nouvelle. Appelé lorsqu'une session est démarée ou lors de l'appel à session_start().

Liste de paramètres

save_path

Le chemin de stockage des données de session.

name

Le nom de la session.

Valeurs de retour

La valeur retournée (habituellement TRUE en cas de succès, FALSE si une erreur survient). Notez que cette valeur est retournée en interne à PHP pour analyse.

Voir aussi



add a note add a note User Contributed Notes SessionHandlerInterface::open - [1 notes]
up
0
svenr at selfhtml dot org
21 days ago
This method should acquire an exclusive lock on the resource that is about to be used to read and write the session data.

The lock should only be released in the close method.

Note that this will effectively serialize parallel requests, which affects performance for a single user session.

Not locking the resource would on the other hand allow for race conditions if two or more parallel requests change the session data.

 
show source | credits | sitemap | contact | advertising | mirror sites