note 35012 deleted from function.session-destroy by bjori
| From: | bjori@php.net | Date: | Tue, 05 Dec 2006 12:20:21 +0000 |
| Subject: | note 35012 deleted from function.session-destroy by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-120296@lists.php.net to get a copy of this message | ||
Note Submitter: nhamill at wam dot umd dot edu
----
For deleting the session cookie:
setcookie( session_name() ,"",0,"/");
that worked for me. When I ran that function without the last parameter, it didn't work. If
you leave out that parameter( domain ), it will default to the current directory, which isn't
always the same as the session cookie's domain.
nick