|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-07-11 19:07 UTC] jasonm304 at hotmail dot com
[2004-07-11 19:10 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 04 18:00:01 2025 UTC |
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.