Re: session_disconnect()
| From: | Reindl Harald | Date: | Mon, 16 May 2011 14:39:16 +0000 |
| Subject: | Re: session_disconnect() | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-52396@lists.php.net to get a copy of this message | ||
Am 16.05.2011 15:50, schrieb Alain Williams:
> On Mon, May 16, 2011 at 03:41:29PM +0200, Reindl Harald wrote:
>> There is no function needed if you use
>> http://php.net/manual/de/function.session-write-close.php
>> like others do since ten years :-)
>
> But that writes $_SESSION back. I am looking to optimise the case when you know that there will
> be no changes to $_SESSION.
session_start();
session_write_close();
sorry but for such simple two-liners a own function only without a lock
for one millisecond is really useless
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc