|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-06-10 23:49 UTC] php at hansbauer dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 08:00:01 2025 UTC |
Session wont work under Windows when register_globals is off. Following example works with register_globals on but when regist_globals is not on it won't work. The value of register_globals has been changed in .htaccess. The same script works perfectly under php4.06 under linux with either register_globals on or off. ***File test.php*** <?php session_start(); $count = 1; session_register('count'); echo $count; ?> <A HREF="test2.php?<?php echo SID?>">click here</A> ***File test2.php*** <?php session_start(); $count = $HTTP_SESSION_VARS['count']; $count = $count + 1; echo $count; ?> <A HREF="test2.php?<?php echo SID?>">click here</A>