#29078 [Opn->Fbk]: sessions fail
| From: | curt@php.net | Date: | Sat, 10 Jul 2004 04:47:34 +0000 |
| Subject: | #29078 [Opn->Fbk]: sessions fail | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-61974@lists.php.net to get a copy of this message | ||
ID: 29078
Updated by: curt@php.net
Reported By: jasonm304 at hotmail dot com
-Status: Open
+Status: Feedback
Bug Type: Session related
Operating System: Windows XP
PHP Version: 4.3.7
New Comment:
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php
If you can provide more information, feel free to add it
to this bug and change the status back to "Open".
Thank you for your interest in PHP.
Previous Comments:
------------------------------------------------------------------------
[2004-07-09 20:35:48] jasonm304 at hotmail dot com
Description:
------------
Im trying to make a login page passing session data to remember the
login details. I know that the code works as it was on another PC
working fine. But the seesions are not kept and fall over. i have a
front form which posts the name and ID. It is checked with a MYSQL DB
and made into a session.
Reproduce code:
---------------
session_start();
$_SESSION["name"] = $UserDetails["Name"];
$_SESSION["userid"] = $UserDetails["UserID"];
header ("Location: login.php");
Expected result:
----------------
The session data is then passed on the login.php
i can then use name and user id to give access to site.
Actual result:
--------------
but when i use print_r($_SESSION) it does not display the session
information.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=29078&edit=1