WebSite X5Help Center

 
Duncan Baker
Duncan Baker
User

Login and logout  en

Autor: Duncan Baker
Visitado 788, Followers 1, Compartido 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

Publicado en
16 RESPUESTAS - 3 úTIL
Duncan Baker
Duncan Baker
User
Autor

login age/ login page

Leer más
Publicado en de Duncan Baker
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.

Leer más
Publicado en de 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.

Leer más
Publicado en de John S.
Duncan Baker
Duncan Baker
User
Autor

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. 

Leer más
Publicado en de Duncan Baker
Wsx5.afsoftware.fr  
Wsx5.afsoftware.fr  
User

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

Leer más
Publicado en de Wsx5.afsoftware.fr  
Duncan Baker
Duncan Baker
User
Autor

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

Leer más
Publicado en de Duncan Baker
Duncan Baker
Duncan Baker
User
Autor

Hello Mr Incomedia - grateful for your thoughts...

Leer más
Publicado en de Duncan Baker
Duncan Baker
Duncan Baker
User
Autor

Incomedia ?

Leer más
Publicado en de Duncan Baker
Duncan Baker
Duncan Baker
User
Autor

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

Leer más
Publicado en de Duncan Baker
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

Leer más
Publicado en de 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,

Leer más
Publicado en de 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

Leer más
Publicado en de Stefano G.