WebSite X5Help Center

 
Duncan B.
Duncan B.
User

Login and logout  en

Author: Duncan B.
Visited 229, Followers 1, Shared 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

Posted on the
16 ANSWERS - 3 USEFUL
Duncan B.
Duncan B.
User
Author

login age/ login page

Read more
Posted on the from Duncan B.
John S.
John S.
User

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.

Read more
Posted on the from John S.
John S.
John S.
User

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.

Read more
Posted on the from John S.
Duncan B.
Duncan B.
User
Author

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. 

Read more
Posted on the from Duncan B.
Wsx5.afsoftware.fr  
Wsx5.afsoftware.fr  
User

to see "déconnexion" it you need to have an account and to be connected !

Read more
Posted on the from Wsx5.afsoftware.fr  
Duncan B.
Duncan B.
User
Author

Any idea as to how I ca make the logout automatic after a period of time?

Read more
Posted on the from Duncan B.
Duncan B.
Duncan B.
User
Author

Hello Mr Incomedia - grateful for your thoughts...

Read more
Posted on the from Duncan B.
Duncan B.
Duncan B.
User
Author

Incomedia ?

Read more
Posted on the from Duncan B.
Duncan B.
Duncan B.
User
Author

I actually find the whole login/logout process rather confusing. Is there any guidance available please?

Read more
Posted on the from Duncan B.
Wsx5.afsoftware.fr  
Wsx5.afsoftware.fr  
User

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 foot-in-mouth

May be one user has the JS script to add the timer.

Regards

https://wsx5.afsoftware.fr

Read more
Posted on the from Wsx5.afsoftware.fr  
Wsx5.afsoftware.fr  
Wsx5.afsoftware.fr  
User

I have the timer too.

Just time to test it and to do an example with WSX5

Be patient pls,

Read more
Posted on the from Wsx5.afsoftware.fr  
Incomedia
Stefano G.
Incomedia

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

Read more
Posted on the from Stefano G.