note 45524 added to ref.session

From: Date: Thu, 09 Sep 2004 17:05:05 +0000
Subject: note 45524 added to ref.session
Groups: php.notes 
Request: Send a blank email to php-notes+get-76337@lists.php.net to get a copy of this message
It seems the issue with $_SESSION being slow has been addressed. Accessing $_SESSION is just as fast as any other superglobal array. It is serialized and written to disk only once at the end of the request, not after each access as some of the previous comments seemed to imply. Some benchmarking info for assigning values to both $_SESSION and $_GET a hundred thousand times or so: $_SESSION: 0.380021095276 $_GET: 0.50522685051 ---- Manual Page -- http://www.php.net/manual/en/ref.session.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+45524 Delete -- http://master.php.net/manage/user-notes.php?action=delete+45524&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+45524&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#76337) next »