Hey folks,
I recently trashed my computer and after rebuilding with XP Pro running IIS, mySQL, PHP 5.2.2 sessions seem to have broken.
Here's an example of my test pages:
test1.php
test2.php is simply
but I don't get the session variable displayed.
When I upload it to my server it works fine, but not on my development box...very frustrating and I just can't see the problem.
I hate loooong bits of code, but at the tisk of putting people off, here is the session section from phpinfo
The one thing I notice is that the session file doesn't exist in the temp directory. Permissions seem OK.
Wasting time on this sort of thing is crap when it should be working...sigh...
Thanks in advance.
Steve Davis
NOTE: This sig does not include any reference to voting, stars, or marking posts as helpful as doing so is cause for membership termination.
I recently trashed my computer and after rebuilding with XP Pro running IIS, mySQL, PHP 5.2.2 sessions seem to have broken.
Here's an example of my test pages:
test1.php
Code:
session_start();
$_SESSION["test"] = "testing";
header("Location:test2.php");
Code:
session_start();
echo "session = " . $_SESSION["test"];
When I upload it to my server it works fine, but not on my development box...very frustrating and I just can't see the problem.
I hate loooong bits of code, but at the tisk of putting people off, here is the session section from phpinfo
Code:
session
Session Support enabled
Registered save handlers files user
Registered serializer handlers php php_binary wddx
Directive Local Value Master Value
session.auto_start Off Off
session.bug_compat_42 Off Off
session.bug_compat_warn On On
session.cache_expire 180 180
session.cache_limiter nocache nocache
session.cookie_domain no value no value
session.cookie_httponly Off Off
session.cookie_lifetime 0 0
session.cookie_path / /
session.cookie_secure Off Off
session.entropy_file no value no value
session.entropy_length 0 0
session.gc_divisor 1000 1000
session.gc_maxlifetime 1440 1440
session.gc_probability 1 1
session.hash_bits_per_character 5 5
session.hash_function 0 0
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path C:\DOCUME~1\Steve\LOCALS~1\Temp\php\session C:\DOCUME~1\Steve\LOCALS~1\Temp\php\session
session.serialize_handler php php
session.use_cookies On On
session.use_only_cookies Off Off
session.use_trans_sid 0 0
Wasting time on this sort of thing is crap when it should be working...sigh...
Thanks in advance.
Steve Davis
NOTE: This sig does not include any reference to voting, stars, or marking posts as helpful as doing so is cause for membership termination.