#23486 [Opn->Bgs]: Session expires on redirection
| From: | magnus@php.net | Date: | Mon, 05 May 2003 06:34:35 +0000 |
| Subject: | #23486 [Opn->Bgs]: Session expires on redirection | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-39056@lists.php.net to get a copy of this message | ||
ID: 23486
Updated by: magnus@php.net
Reported By: bangboy2k2 at hotmail dot com
-Status: Open
+Status: Bogus
Bug Type: Session related
Operating System: Windows 2000 Advanced Server
PHP Version: 4.3.2RC1
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
It works just fine if you do it correctly.
Previous Comments:
------------------------------------------------------------------------
[2003-05-05 01:23:15] bangboy2k2 at hotmail dot com
Hi there,
i have been working with ASP/JSP for quite sometime. now getting into
PHP. i'm facing too many problems related to sessions.
I have a page in which after validating username and password i'm
placing the username in session and redirecting to a page. in the next
page session expires unconditionally. i am starting sessions explicitly
and using ob_start() for optimized redirects...
where as if i write some text to the response stream and then try to
access the same page... session works very fine. Is there any solution
to over come this? i'm placing the code snippets below to analyze.
$row = mysql_fetch_array($result, MYSQL_BOTH);
$_SESSION["uid"] = $row[0];
$_SESSION["uname"] = $row[1];
header("Location: bohome.php");
session fails in bohome.php (note i am starting session even in
bohome.php).
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=23486&edit=1