Login and logout
Autore: Duncan Baker
Visite 4826,
Followers 1,
Condiviso 0
I am having problems with login and logout in version 2019.
I have a password protected page.
o I can generate the login page automatically - but how can I customise that? How can I produce my own login age?
o How can I include login and logout in the header or in a special page?
o I can generate a logout link which I can instert in the private page so people can log out. But that is just a text link and does not look very pretty. How can I customise that please?
o How can I set the page to log out automatically after a certain length of time?
It all seemed to be much easier in earlier versions :)
Duncan
Postato il
Autore
login age/ login page
Hello Duncan
You can make the login/logout in the header or footer, but then all pages has to be PHP pages.
You could also make a login/logout in the header/footer that directs to a login/logout page - then no need to have all pages as PHP. Creating a login/logout page is simple - just create a normal page that has a login and a logout object. You can create this page as a hidden page that can be accessed via a link.
If you are using a "dead" version ( a version that will not be updated ), then you can customize the landing page for a user that tries to access a locked page without being logged in. If this is what you ask for, then I can explain separately. It is not much that should be done, but it has to be done carefully.
Normally you will be logged out when the session time expires - normally 20 min.
@John,
you said ".. but then all pages has to be PHP pages."
not agree with you. here the logout
you can check on the website: https://www.moigemme.fr
https://wsx5.afsoftware.Fr
I was mostly thinking of the code for the login.
If you have some code for login, that can be placed in the header without the pages need to be PHP, then it would be great.
Autore
Thanks guys,
But I am still stuck. X5 has generated a imlogin.php page which works fine. But how do I customise that and how can I add a login to the header. If I can do that, does the different login lead to a different set of pages?
The 20 minute expiry doesn't seem to work here - grateful for more advice.
Autore
Thanks https://wsx5.afsoftware.Fr
In fact, I can't see that link on your page.
to see "déconnexion" it you need to have an account and to be connected !
Hello Duncan
About the landing page when trying to access a restricted page when not logged in - see this poset :
https://helpcenter.websitex5.com/it/post/187867
Autore
Any idea as to how I ca make the logout automatic after a period of time?
Autore
Hello Mr Incomedia - grateful for your thoughts...
Autore
Incomedia ?
Autore
I actually find the whole login/logout process rather confusing. Is there any guidance available please?
Not really automatic but a way to investigate.
You can create a PHP page with following code before HTML tag
When you click on this page, the session wil be destroyed and the logout will be done (need to be logged before)
But here you need to click on this page to force the session destroy... Not auto.
A little bit like you click on disconnect button
May be one user has the JS script to add the timer.
Regards
https://wsx5.afsoftware.fr
I have the timer too.
Just time to test it and to do an example with WSX5
Be patient pls,
Hi Duncan
In order to address your doubts:
o Customization of the login page: The default login page known as "Reserved Access" at Step 2 cannot be customized like most other pages. It will make use of the general settings set at Step 2 -> Text, Field... and you can change some settings at Step 3 -> Properties, but that's it for the moment. Most other customizations would require custom code to be added.
o Include login and logout in the header or in a special page: You can surely do so. Step 2 -> Template Content. If you just insert a Login/Logout object, it will display correctly on every page
o Customise the logout link: As described for the first question, all the available customizations possibilities are mentioned there. Not much else is currently available if not without custom code
o How can I set the page to log out automatically after a certain length of time: This is something that should be configured through your server. You can specify a default time to expire for the cookies running on your website, since the time for that specific login cookie is not available to customize inside the software. I would like to suggest contacting your hosting support for such a change to be applied
Please do let me know here if I can provide more information on this
Thank you
Stefano
Hello Duncan,
Here a link with an example to do an auto logout with javascript & PHP files.
https://wsx5.afsoftware.fr/viewforum.php?f=57
I am sorry the explanation pdf file is in french... but not complicate to follow with pictures.
Hope this helps
Regards
https://wsx5.afsoftware.fr