The Logout object

Issues related to the Login tools of WYSIWYG Web Builder.
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/login_basics.html
http://www.wysiwygwebbuilder.com/login_tools.html

TIP:
A lot of information about the login tools can be found in the help/manual.
Also checkout the demo template that is include with the software.
Post Reply
User avatar
alex4orly
 
 
Posts: 735
Joined: Mon Jan 20, 2014 8:17 am
Location: Australia
Contact:

The Logout object

Post by alex4orly » Tue Jan 08, 2019 8:22 am

I expect this object to terminate my login session
But, it seems it only redirects me to anotherpage, if the visitor hist the back button - he is still in the session?

Or is it not so?

Cheers

User avatar
Pablo
 
Posts: 16056
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: The Logout object

Post by Pablo » Tue Jan 08, 2019 8:33 am

The logout object generates the following code:

Code: Select all

<?php
if ($_SERVER['REQUEST_METHOD'] == 'POST' && isset($_POST['form_name']) && $_POST['form_name'] == 'logoutform')
{
   if (session_id() == "")
   {
      session_start();
   }
   unset($_SESSION['username']);
   unset($_SESSION['fullname']);
}
?>
This will logout the user by unsetting the username.

Note that there is no redirect.

Post Reply