From:             jasonm304 at hotmail dot com
Operating system: Windows XP
PHP version:      4.3.7
PHP Bug Type:     Session related
Bug description:  sessions fail

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 bug report at http://bugs.php.net/?id=29078&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=29078&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=29078&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=29078&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=29078&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=29078&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=29078&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=29078&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=29078&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=29078&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=29078&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=29078&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=29078&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29078&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=29078&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=29078&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=29078&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29078&r=float

Reply via email to