View Single Post
Old 11-28-2006, 11:23 PM   #1 (permalink)
grimpirate
Recruit
 
grimpirate's Avatar
 
Join Date: Nov 2006
Posts: 6
grimpirate is on a distinguished road
Send a message via Yahoo to grimpirate
Question Session Question

Here's an example which I tested on my home computer (which works) and on my webserver (which fails).
test1.php
PHP Code:
<?php
session_start
();
$_SESSION['test'] = 'haha';
?>
<html>
<head>
<meta http-equiv="refresh" content="1;test2.php">
</head>
<body>
</body>
</html>
test2.php
PHP Code:
<?php
session_start
();
?>
<html>
<head>
</head>
<body>
<?php
if(IsSet($_SESSION['test'])){
    echo 
'SET';
}
?>
</body>
</html>
The string SET is not echoed onto the browser in test2.php on my web browser.
grimpirate is offline   Reply With Quote