|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-07-15 19:04 UTC] triffid at totalise dot co dot uk
Hi, I am trying to set up PHP4.2.1 with apache 1.32.26 & MySql 3.23.51, but am having problems with session vars ! I have however had no problems at all with windows 98.. I have configured php & apache as per instructions & have enabled register globals, but no matter what I do I cannot seem to get session variables to be passed to other scripts!(either $_session OR session_register ) If I use the same configuration files(httpd.conf & php.ini)on windows 98 all works fine, How crazy is that ! I am using the CGI method with apache. I also am downloading your latest bug fix version. I am no way an expert, Am I missing something important ?, If you can suggest a solution to curing this I would be grateful.. Thanks.. Andy T P.S. (What is the most recommendable Linux software ?) PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 15 22:00:02 2025 UTC |
Why Bogus ? Also IE exploer tends to crash a lot while running apache & PHP but not sure if this is due to PHP or Apache 2.0.39! Here are my scripts.. script.php 1 then script2.php both are purely a test, but on my system, does'nt pass the session var. Do you REALLY want me to past in to here my httpd.conf and php.ini ? I will try to send this also directly to your email address yohgaki@php.net or letme know how to attach these files somewhere.. Here is the scripts (run script 1 first) Thanks A. Trayford. ---------------------------------------- script1.php ----------- <? session_start(); if (!isset($_SESSION['andyt'])) { $_SESSION['andyt'] = "Hi Tony"; } else { $_SESSION['andyt'] = "Hi Andy"; } echo "<br>"; echo $_SESSION['andyt']; echo "<br>"; ?> <html> <head> <title>Session Test script 1</title> </head> <body> If you have just run this, click here to load <A href="script2.php">script 2</a>, you should see a name passed via session var's </body> </html> ------------------------------------------------ script2.php ----------- <? session_start(); // If a session var is available, print it echo "is there a session var? ["; echo $_SESSION['andyt']; echo "], we'll soon find out!<br>"; ?> <html> <head> <title>Session test script 2</title> </head> <body> If script - test1.php was run first, you should see a name in the square brackets! </body> </html> ---------------------------------------------