Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

session destroy 1

Status
Not open for further replies.

wasname

Programmer
Mar 3, 2002
3
AU
I've started a session and tested it, it starts ok but when I go to destroy it I get the following error:

Warning: Trying to destroy uninitialized session in [filename] on line 5

How can this be when the pages that require the login script to function still work, so I figure the session's still running.

Cheers.
 
I think you might not be putting a session_start on the same page.

make sure it looks like this:

<?php
session_start();
session_destroy();
?> -Nukoi
I know my stuff.. Hire me.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top