Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
February 09, 2012, 12:46:20 PM

Pages: [1]   Go Down
  Print  
Author Topic: Creating a LOGOUT page...help!  (Read 1139 times)
gaypo0
Space Explorer
***
Offline Offline

Posts: 9


« on: January 06, 2010, 03:31:35 PM »

Hi, I have password-protected a directory of my site using Basic authentication. Now I am trying to create a logout page, but how do I do this? Here is what I have thus far:

<?php
session_start();
session_unset();

session_destroy();
Header("Location: my site's name);
?>

But this doesn't seem to be working. Any suggestions? Thanks.
Logged
scanman20
Über Jedi
*****
Offline Offline

Posts: 1520



WWW
« Reply #1 on: January 07, 2010, 05:59:52 AM »

http://httpd.apache.org/docs/1.3/howto/auth.html#basicfaq
Logged

Even a broken clock is right twice a day.
NotOneBit.com
MCSE - MCSA - MCP
Pages: [1]   Go Up
  Print  
 
Jump to: