#27702 [NEW]: session dont work

From: Date: Thu, 25 Mar 2004 19:53:58 +0000
Subject: #27702 [NEW]: session dont work
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-56842@lists.php.net to get a copy of this message
From:             rupan1982matrix at yahoo dot com
Operating system: windowsxp
PHP version:      4.3.4
PHP Bug Type:     Unknown/Other Function
Bug description:  session dont work

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

-- 
Edit bug report at http://bugs.php.net/?id=27702&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=27702&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=27702&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=27702&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=27702&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=27702&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=27702&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=27702&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=27702&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=27702&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=27702&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=27702&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=27702&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27702&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=27702&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=27702&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=27702&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27702&r=float


Thread (2 messages)

« previous php.bugs (#56842) next »