php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29078 sessions fail
Submitted: 2004-07-09 20:35 UTC Modified: 2004-07-11 19:10 UTC
From: jasonm304 at hotmail dot com Assigned:
Status: Not a bug Package: Session related
PHP Version: 4.3.7 OS: Windows XP
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jasonm304 at hotmail dot com
New email:
PHP Version: OS:

 

 [2004-07-09 20:35 UTC] 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-07-11 19:07 UTC] jasonm304 at hotmail dot com
I have found out by further testing that this is not a php issue. I found out that my Firewall was blocking the use of sessions. If i moved to more than one php page the session data would be lost due to the firewall.
 [2004-07-11 19:10 UTC] sniper@php.net
Firewall issue -> not PHP bug -> bogus bug report.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Sep 19 15:01:27 2024 UTC