note 57629 added to ref.session

From: Date: Sun, 09 Oct 2005 10:34:29 +0000
Subject: note 57629 added to ref.session
Groups: php.notes 
Request: Send a blank email to php-notes+get-96746@lists.php.net to get a copy of this message
---PHP SESSIONS NOT WORKING--- To add to the notes of vincent and fasteddie, I am working on winXP, apache and php. as well and encountered the same problem only with a small difference. There was one site that worked and one that did not. On closer examination it turned out that in the case of the working site the "session_start" was before the "doctype html" line and in the one not worken after. Ones changed all went well, NO changes to the ini file. In short "session_start" is the VERY first thing you do. hope it helps, kind regards. ---- Manual Page -- http://www.php.net/manual/en/ref.session.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+57629 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+57629&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+57629&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+57629&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+57629&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+57629&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+57629&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+57629&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+57629&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#96746) next »