Single Page Protect Logout method

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
IMPORTANT NOTE!!

DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.



PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Post Reply
User avatar
wwonderfull
 
 
Posts: 1603
Joined: Fri Aug 21, 2020 8:27 am
Contact:

Single Page Protect Logout method

Post by wwonderfull »

Is it possible to do a logout of a page which has the Single Page Protect tool. Meaning after logout it redirects to some page or again in the same protected page but with login options again.
Last edited by wwonderfull on Mon Sep 05, 2022 7:16 am, edited 1 time in total.
User avatar
Pablo
 
Posts: 23596
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Single Page Protect Logout method

Post by Pablo »

There is no logout for 'single page protect'.
User avatar
wwonderfull
 
 
Posts: 1603
Joined: Fri Aug 21, 2020 8:27 am
Contact:

Re: Single Page Protect Logout method

Post by wwonderfull »

Pablo wrote: Mon Sep 05, 2022 7:11 am There is no logout for 'single page protect'.
Can there be a solution for this. I mean after login in using the protect method the page is wide open. Any one can see it unless the whole browser cache is removed. Logout option could have come handy here.
Last edited by wwonderfull on Sat Jul 22, 2023 5:47 pm, edited 1 time in total.
User avatar
Pablo
 
Posts: 23596
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Single Page Protect Logout method

Post by Pablo »

You can easily add it yourself:
- add a logout button
- select 'convert to form'
- in the HTML block: change

Code: Select all

unset($_SESSION['username']);
to

Code: Select all

unset($_SESSION['password']);
User avatar
wwonderfull
 
 
Posts: 1603
Joined: Fri Aug 21, 2020 8:27 am
Contact:

Re: Single Page Protect Logout method

Post by wwonderfull »

Thanks pablo it works perfectly :)
Post Reply