I have followed your tutorial explaining 'Managing Users With PHP Sessions & MYSQL'. It is an excellent tutorial and I have edited it to fit in with my requirements, it works fine except for one problem. I have tried to include a logout button on my pages and this button links to a page called logout.php.
Logout.php contains the following code:
$_SESSION = array();
When i click the button i get the following error:
Warning: Trying to destroy uninitialized session
i cant figure out how the session is uninitialized when i have logged in and it wont let me login unless i enter the user details into the sessions.
hope you can help
maybe i need to set a session name or something? to open the session i am using session_start();
where would i set the session name in this statement?
Thanking you in advance
any suggestions will be greatfully received