Zubrag.com :: Forum

zubrag.com => Password Protect Advanced => Topic started by: therockwwe on November 21, 2007, 08:55:11 PM



Title: How to add Logout link
Post by: therockwwe on November 21, 2007, 08:55:11 PM
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


Title: Re: How to add Logout link
Post by: zubrag on November 22, 2007, 03:31:58 AM
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>


Title: Re: How to add Logout link
Post by: vickibellamy on June 27, 2008, 12:48:15 PM
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????