Zubrag.com
September 17, 2019, 07:08:46 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: How to add Logout link  (Read 6841 times)
therockwwe
Newbie
*
Posts: 7


« 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

Logged
zubrag
Administrator
Hero Member
*****
Posts: 788


WWW
« Reply #1 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>
Logged
vickibellamy
Newbie
*
Posts: 3


« Reply #2 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?Huh
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC