note 94783 modified in function.session-start by danbrown

From: Date: Mon, 20 Jun 2011 15:05:07 +0000
Subject: note 94783 modified in function.session-start by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-180705@lists.php.net to get a copy of this message
Ever get an error like this: Warning: Unknown: open(/tmp/sess_lLFJ,tk9eFs5PGtWKKf559oKFM3, O_RDWR) failed: Permission denied (13) ? Don't ask me how, but I managed to fix it by calling session_id() before session_start(), at the top of the page. Try it. Hopefully it'll help someone else. --was-- Ever get an error like this: Warning: Unknown: open(/tmp/sess_lLFJ,tk9eFs5PGtWKKf559oKFM3, O_RDWR) failed: Permission denied (13) ? Don't ask me how, but I managed to fix it by calling session_id() before session_start(), at the top of the page. Try it. Hopefully it'll help someone else. Maybe the guys here at PHP.net could explain why it worked :) http://php.net/manual/en/function.session-start.php

« previous php.notes (#180705) next »