session_destroy doesnt destroy anything

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
nga
Forum Commoner
Posts: 46
Joined: Mon Aug 17, 2009 3:05 am

session_destroy doesnt destroy anything

Post by nga »

first of all, im using ajax to manually request file with the session_destroy. I succedd in unset session so i'm guessing it isnt coding problem but there is something im missing here. I read you have to unset session uid too but im not using cookies. Just pure $_SESSION...
balo
Forum Newbie
Posts: 10
Joined: Mon Jan 18, 2010 11:49 am

Re: session_destroy doesnt destroy anything

Post by balo »

can you post same code?
User avatar
akuji36
Forum Contributor
Posts: 190
Joined: Tue Oct 14, 2008 9:53 am
Location: Hartford, Connecticut

Re: session_destroy doesnt destroy anything

Post by akuji36 »

More on session _destroy here

http://www.phpbuilder.com/board/showthr ... t=10322364






thanks Rod
User avatar
AbraCadaver
DevNet Master
Posts: 2572
Joined: Mon Feb 24, 2003 10:12 am
Location: The Republic of Texas
Contact:

Re: session_destroy doesnt destroy anything

Post by AbraCadaver »

nga wrote:first of all, im using ajax to manually request file with the session_destroy. I succedd in unset session so i'm guessing it isnt coding problem but there is something im missing here. I read you have to unset session uid too but im not using cookies. Just pure $_SESSION...
PHP sessions use a cookie by default to track the session id. Unless you have changed this, then there is a cookie used. What problem are you having?
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
Post Reply