This Message Forum is no longer in use

Please use the new Bravenet Help Forums FOUND HERE

General Forum
This Forum is Locked
Author
Comment
Logout Feature?

Hi,
I am using the password protector is there a way for a log out feature for my website. I use the Login feature got my website but the URL gets changed . Is there a way when a member leaves the protected area that they can click log out and the URL will go back to normal

Re: Logout Feature?

if you are using php and sessions, then,
you may unset the session variable and redirect the visitor to your home page.

simple code may be:

$_SESSION['valid_user'] = '';
unset($_SESSION['valid_user']);

sa_meta_redirect('index.php');

Re: Logout Feature?

Ann - you gave a code in your reply - where do you place that code in the webpage? I know meta is in the header - does the whole thing go in the header of each page in the protected area?