note 80657 added to function.session-write-close

From: Date: Mon, 28 Jan 2008 06:01:10 +0000
Subject: note 80657 added to function.session-write-close
Groups: php.notes 
Request: Send a blank email to php-notes+get-135450@lists.php.net to get a copy of this message
Wow, thanks thales. I've been struggling with session not being set after Header("Location:...") for couple of days now. Calling session_write_close before the redirection doesn't fix it and neither did any of the other suggestions below. On the second attempt it works fine, but since this is a login screen it basically forces the user to log in twice each time. After reading your post I tried replacing this path "/afterlogin.php" to the redirected file with a relative path "afterlogin.php" and now it works fine. ---- Server IP: 64.71.164.2 Probable Submitter: 208.54.15.124 ---- Manual Page -- http://www.php.net/manual/en/function.session-write-close.php Edit -- https://master.php.net/note/edit/80657 Del: integrated -- https://master.php.net/note/delete/80657/integrated Del: useless -- https://master.php.net/note/delete/80657/useless Del: bad code -- https://master.php.net/note/delete/80657/bad+code Del: spam -- https://master.php.net/note/delete/80657/spam Del: non-english -- https://master.php.net/note/delete/80657/non-english Del: in docs -- https://master.php.net/note/delete/80657/in+docs Del: other reasons-- https://master.php.net/note/delete/80657 Reject -- https://master.php.net/note/reject/80657 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#135450) next »