Pages

Affichage des articles dont le libellé est PHP Sessions. Afficher tous les articles
Affichage des articles dont le libellé est PHP Sessions. Afficher tous les articles

lundi 3 juin 2013

PHP Sessions

An alternative way to make data accessible across the various pages of an entire website is to use a PHP Session.
A session creates a file in a temporary directory on the server where registered session variables and their values are stored. This data will be available to all pages on the site during that visit.
The location of the temporary file is determined by a setting in the php.ini file calledsession.save_path. Bore using any session variable make sure you have setup this path.
When a session is started following things happen: