php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27702 session dont work
Submitted: 2004-03-25 14:53 UTC Modified: 2004-03-25 14:57 UTC
From: rupan1982matrix at yahoo dot com Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 4.3.4 OS: windowsxp
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: rupan1982matrix at yahoo dot com
New email:
PHP Version: OS:

 

 [2004-03-25 14:53 UTC] rupan1982matrix at yahoo dot com
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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-03-25 14:57 UTC] derick@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 04 16:01:31 2024 UTC