Theo wrote:
>>
>>Okay, I'm a bit new to php, sorry. I have a link called logout, code
>>being logout what would I need to do to call the
>>session_destroy() function from there? By the way, yes I am using
>>sessions for my authentication.
>>
>
>
> just my opinion, have your logout link simply go to a new page with the
> php needed, and a thank you in the html portion.
Agreed, that way you can not only destroy the session but you can (as
another poster pointed out) destroy any cookies you may have and also unset
any global variables you may be using.
If you need any examples have a search around <a style='text-decoration: underline;' href="http://www.phpbuilder.com" target="_blank">www.phpbuilder.com</a> code
library section or (possibly better for tutorials) <a style='text-decoration: underline;' href="http://www.devshed.com/c/b/PHP#/" target="_blank">www.devshed.com/c/b/PHP#/</a>
Enjoy php - it is a fun language, post back if you need more help.
--
Regards
Neil
Registered Linux User 324599
Linux is based entirely on the ancient principle of WYGIWYGAINGW*
________________
*) 'What You Get Is What You're Given And It's No Good Whining' (after
Terry Pratchett)<!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: php logout