|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-05-05 01:34 UTC] magnus@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 07 23:00:01 2026 UTC |
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).