|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-03-25 14:57 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Wed Feb 04 19:00:01 2026 UTC |
Description: ------------ Hoi, i have installed apache 2.0.47 and php 4.3.4. Everything works except the session. page1.php <?php session_start(); session_register("valid_user"); // Give the session variable a value $_SESSION['valid_user'] = 1; ?> <a href="page2.php">Klik hier</a> page2.php <?php session_start(); // sorry, vergeten.. if($_SESSION['valid_user'] == 1) { echo "werkt"; } else { echo "niet"; } ?> when this code in same one page that it works ohterwise (in two different pages) it wont work. why? i have visual c++, norton antivirus, zonealaram firewaal installed. Is that a problem? do ik have to put someting in systemvariable? I dont know what to doe, please help me? THX, Rupan Reproduce code: --------------- dfg Expected result: ---------------- dfg Actual result: -------------- dfg