jscix Posted February 12, 2007 Share Posted February 12, 2007 I'm not sure what's wrong here, i've tried multiple ways to destroy the current session, none of them have worked. This is the code im currently using: <? session_start(); session_destroy(); session_unset(); } ?> As far as I can tell from what I have read this should delete the session, it isn't thought.. I've done a fair bit of reading on sessions, and im stumped... Questions: -Should that code end the current session? -If so, are there any specific things which would prevent that code from ending the session? Any help is much appreciated.. Quote Link to comment Share on other sites More sharing options...
redarrow Posted February 12, 2007 Share Posted February 12, 2007 <?php session_start(); //try unseting the varables indevigally ok. unset($varable_name); session_destroy(); } ?> Quote Link to comment Share on other sites More sharing options...
jscix Posted February 12, 2007 Author Share Posted February 12, 2007 Wow, it worked. Tyvm! :) Quote Link to comment Share on other sites More sharing options...
redarrow Posted February 12, 2007 Share Posted February 12, 2007 That nice good luck Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.