session_start();
Posted: Fri Mar 12, 2004 4:10 pm
i'm having problems using session_start(). ultimately, i want to make a login session, but even using simpler code from the php documentation, i get errors.
http://68.41.89.22/retard.php <- the page with errors
http://68.41.89.22/test.php <- my phpinfo()
thanks.
-nick podges
Code: Select all
<?php
// page1.php
session_start();
echo 'Welcome to page #1';
$_SESSIONї'favcolor'] = 'green';
$_SESSIONї'animal'] = 'cat';
$_SESSIONї'time'] = time();
// Works if session cookie was accepted
echo '<br /><a href="page2.php">page 2</a>';
// Or maybe pass along the session id, if needed
echo '<br /><a href="page2.php?' . SID . '">page 2</a>';
?>http://68.41.89.22/test.php <- my phpinfo()
thanks.
-nick podges