smc Posted January 21, 2007 Share Posted January 21, 2007 Hiya,Basically I'm trying to achieve a logout buttonNow say I make a function like this[code=php:0]function logout(){ session_destroy();}[/code]How can I incorporate that into a link so when I click on it it ends the session?Thanks a billion, you guys are very helpful! I can't even fathom how much PHP I've learned in the past 24 hours Quote Link to comment Share on other sites More sharing options...
Jessica Posted January 21, 2007 Share Posted January 21, 2007 Put that on a page and link to the page. Quote Link to comment Share on other sites More sharing options...
smc Posted January 21, 2007 Author Share Posted January 21, 2007 I considered that option I just wanted to see if I could save the extra step.Oh well nothing ventured nothing gained, thanks! 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.