php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24668 Session ID not being passed on
Submitted: 2003-07-15 21:03 UTC Modified: 2003-07-15 22:01 UTC
From: njt1982 at yahoo dot com Assigned:
Status: Not a bug Package: Session related
PHP Version: 4.3.2 OS: Windows 2003
Private report: No CVE-ID: None
 [2003-07-15 21:03 UTC] njt1982 at yahoo dot com
Description:
------------
I am unable to get Sessions to pass data onto another PHP script. I am using PHP 4.3.2 and Apache 2.0.46
here is my code:

login.php
<?php
session_name("nick");
session_start();
$SessID = Session_ID();
echo "<HTML>
		$SessID
		<BR><BR>
		Click <a href='./checkLogin.php'>here</a> to check the session
      </HTML>";
?>

checkLogin.php
<?php
	session_name("nick");
	session_start();
	echo Session_ID();
?>

What SHOULD happen is that checkLogin.php picks up that a session has been made and then resumes it. But it doesn't. It simply makes a new SessionID.

I have spent days reading around the forums

[Session]
session.save_handler = files
session.save_path = "I:/Webpage/tmp"
session.use_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain =
session.serialize_handler = php
session.gc_probability = 1
session.gc_divisor     = 100
session.gc_maxlifetime = 1440
session.bug_compat_42 = 0
session.bug_compat_warn = 0
session.referer_check =
session.entropy_length = 0
session.entropy_file =
;session.entropy_length = 16
;session.entropy_file = /dev/urandom
session.cache_limiter = public
session.cache_expire = 180
session.use_trans_sid = 0
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="

PLEASE help me! I cannot understand what I'm doing wrong. The manual just confuses me even more.. :-S

Thanks for any help that can be provided.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-07-15 22:01 UTC] sniper@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

This is wrong place to ask support questions.

 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Feb 12 08:00:02 2026 UTC