note 45524 deleted from ref.session by betz
| From: | betz@php.net | Date: | Fri, 08 Jul 2005 09:34:06 +0000 |
| Subject: | note 45524 deleted from ref.session by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-91661@lists.php.net to get a copy of this message | ||
Note Submitter: voisine at yahoo dot com
----
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