![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| Welcome
to Tech Support Forum home to more then 136,000 problems solved. Issues
have included: Spyware, Malware, Virus Issues, Windows, Microsoft,
Linux, Networking, Security, Hardware, and Gaming Getting your
problem solved is as easy as: 1. Registering for a free account 2. Asking your question 3. Receiving an answer Registered members: * See fewer ads. * And much more..
|
| Want to know how to post a question? click here | Having problems with spyware and pop-ups? First Steps |
|
|||||||
| Web Design & Programming Discussion of web design, and server-side & client-side scripting |
![]() |
|
|
Thread Tools |
|
|
#1 (permalink) |
|
Registered User
Join Date: Apr 2008
Posts: 21
OS: xp Home sp2
|
[SOLVED] Log out button
Hi I'm developing a website for someone and I have been html and php. I'm new to php does anyone know the code that will enable a log out button to log a user out and destroy both the cookie and the session?
|
|
|
|
|
|
#2 (permalink) |
|
Design Team Member
Join Date: Oct 2006
Location: Richmond, B.C.; Canada
Posts: 666
OS: Windows XP [Version 5.1.2600] SP3 | Ubuntu Hardy Heron
|
Re: Log out button
The method described here: http://www.devarticles.com/c/a/PHP/P...y-a-Beginners/ works quite well and is easy to implement. If I can do it, anyone can.
__________________
![]() Validate your Markup Validate your CSS
|
|
|
|
|
|
#3 (permalink) |
|
Design Team Member
Join Date: Jul 2007
Location: Northampton, UK
Posts: 1,090
OS: Win Vista Home Premium & Ubuntu Hardy(8.04)
|
Re: Log out button
Just to add my 2 cents, the tutorials here: www.w3schools.com have an excellent set of PHP beginner tutorials(there is a tutorial on logging users in/out securely, though dm01 seems to have an article on that anyway)...
Cheers, Jamey |
|
|
|
![]() |
| Thread Tools | |
|
|