hi.
i have a members only area.
i'm stuck as to how to retrieve the logged in users individual data.
thanks,
stuart.
| SitePoint Sponsor |
hi.
i have a members only area.
i'm stuck as to how to retrieve the logged in users individual data.
thanks,
stuart.

how are you logging in your users? do you store something in a cookie?
Check out our new Industry News forum!
Keep up-to-date with the latest SP news in the Community Crier
I edit the SitePoint Podcast
i use sessions
<?php
require_once('auth.php');
?>
<?php
//Start session
session_start();
//Check whether the session variable
//SESS_MEMBER_ID is present or not
if(!isset($_SESSION['SESS_MEMBER_ID']) || (trim($_SESSION['SESS_MEMBER_ID'])=='')) {
header("location: access-denied.php");
exit();
}
?>
Bookmarks