How to add Logout link

Started by therockwwe, November 22, 2007, 04:55:11 AM

therockwwe

Hi

I am a Php beginner, but so far this script has worked wonderfully

I am wondering how do I add a logout link to my page

Any help is greatly appreciated

Thanks in advance

Cheers

zubrag

To logout you need to link to any protected page (or to login.php) adding logout=1 parameter.
For example you protected pages members-only.php, members.php. Then any of the following would work.
<a href="http://www.example.com/path/to/protected/page/members-only.php?logout=1">Logout</a>
<a href="http://www.example.com/path/to/protected/page/members.php?logout=1">Log out</a>
<a href="http://www.example.com/path/to/loginphp/login.php?logout=1">Logout</a>

vickibellamy

Hi I tried adding the link changing example.com to my own domain and sunsequent path yet the link goes to example.com not my domain, why is that????