|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-07-15 22:01 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Thu Feb 12 08:00:02 2026 UTC |
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.