"You have to be logged in to view this page
i'm obviously logged in as i'm making an entry
any help is appreciated..
From the phpinfo outputgarvinhicking wrote:It seems your PHP sessions are wrongly configured. Check all session relevant settings (especially session.save_path) and check your phpinfo() output to see that sessions are enabled. Also make sure your browser supports cookies.
Regards,
Garvin
path is world writtablegarvinhicking wrote:Is your /tmp path world-writable? Which Linux/Unix are you using, and which PHP version?
Code: Select all
<?php
session_start();
$_SESSION['dummy'] = time();
?>
<html><body>
<?php
if ($_GET['output'] == 'true') {
echo 'DUMMY IS: ' . $_SESSION['dummy'];
} else {
echo '<a href="#" onclick="window.open(\'test.php?output=true\')">click me and read ' . $_SESSION['dummy'] . '</a>';
}
?>
</body></html>
Code: Select all
<?php
session_start();
?>
<html><body>
<?php
if ($_GET['output'] == 'true') {
echo 'DUMMY IS: ' . $_SESSION['dummy'];
} else {
$_SESSION['dummy'] = time();
echo '<a href="#" onclick="window.open(\'test.php?output=true\')">click me and read ' . $_SESSION['dummy'] . '</a>';
}
?>
</body></html>
Now it looks rightgarvinhicking wrote:Argh, I'm sorry, the test.php code was wrong. Please try again with this:
(session.cookie_domain is right for you!)Code: Select all
<?php session_start(); ?> <html><body> <?php if ($_GET['output'] == 'true') { echo 'DUMMY IS: ' . $_SESSION['dummy']; } else { $_SESSION['dummy'] = time(); echo '<a href="#" onclick="window.open(\'test.php?output=true\')">click me and read ' . $_SESSION['dummy'] . '</a>'; } ?> </body></html>