WebSite X5Help Center

 
Duncan Baker
Duncan Baker
User

Login and logout  en

Автор: Duncan Baker
Просмотрено 4717, Подписчики 1, Размещенный 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

Размещено
16 Ответы - 3 Полезно
Duncan Baker
Duncan Baker
User
Автор

login age/ login page

Читать больше
Размещено От 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.

Читать больше
Размещено От 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.

Читать больше
Размещено От John S.
Duncan Baker
Duncan Baker
User
Автор

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. 

Читать больше
Размещено От Duncan Baker
Axel  
Axel  
User

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

Читать больше
Размещено От Axel  
Duncan Baker
Duncan Baker
User
Автор

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

Читать больше
Размещено От Duncan Baker
Duncan Baker
Duncan Baker
User
Автор

Hello Mr Incomedia - grateful for your thoughts...

Читать больше
Размещено От Duncan Baker
Duncan Baker
Duncan Baker
User
Автор

Incomedia ?

Читать больше
Размещено От Duncan Baker
Duncan Baker
Duncan Baker
User
Автор

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

Читать больше
Размещено От Duncan Baker
Axel  
Axel  
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

Читать больше
Размещено От Axel  
Axel  
Axel  
User

I have the timer too.

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

Be patient pls,

Читать больше
Размещено От Axel  
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

Читать больше
Размещено От Stefano G.