View Single Post
  #8 (permalink)  
Old Feb 5th, 2008, 21:03
alexgeek's Avatar
alexgeek alexgeek is offline
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,790
Blog Entries: 9
Thanks: 0
Thanked 2 Times in 2 Posts
Re: mysql data loads once user login

Quote:
Originally Posted by longstand View Post
Recently i succesfully created my edit accounts page with file upload!!! When the user is logged in there data automatically appears in the edit account page ussing this code:

PHP: Select all

// check if session exists and assing it to a variable
if (!isset($_SESSION)) {
 
session_start();
}
// we can populate the session MM_Username because it is a unique identifier
if (isset($_SESSION['MM_Username'])) {
 
$username $_SESSION['MM_Username'];

It does not seem to work for me when on my profile page, the user data is not automatically loaded into the profile even with the session code above... Is there any specific reason for this??
What do you have stored in the session?
Reply With Quote