Quote Originally Posted by MonkOFox View Post
Looking at what code you provided for login.php, you didn't call session_start(). You have to call this on every page that you intend to set or retrieve $_SESSION variables.
Otherwise, if you're getting redirected (meaning your login was successful), $_SESSION['user'] and ['userid'] should work.
I thought the same thing too... but it's in top.php...
Quote Originally Posted by Jamie_Garland View Post
hello,

at the top of the top.php page i have

<?php
session_start();
$username = $_SESSION['username'];
$userid = $_SESSION['userid'];
?>
if all pages include top.php, then the session should be started, and he's able to read the session data...

-tg