WebSite X5Help Center

 
Tom G.
Tom G.
User

How to open page only after authentication?  en

Auteur : Tom G.
Visité 1848, Followers 1, Partagé 0  

I have a page, which should only be accessed after specifying proper user id and password.

Right now, I have a login page, from which I open the restricted page (only when user id and passwords are correct). But when someone knows the url of my restricted page, he can specify it and open it skipping the authentication part.

How can I force authentication for the restricted page and not allow to open it without user id and password?

Posté le
5 RéPONSES - 2 UTILE - 1 CORRECT
Tom G.
Tom G.
User
Auteur

Thank you, afs, for quick response!

Well, it doesn’t work for me… Is it ver 17.1.2 problem?

            

Here is my project.

On the EVENT page, press <crtl>e – the EditText.html will open (the functionality there is removed at this point). It is supposed to ask for email and password (specified in Reserved Access) but it doesn’t.

                        

Also, you can type in the url of this page and it will open without authentication...

Lire plus
Posté le de Tom G.
Tom G.
Tom G.
User
Auteur

Looks like WSX5 recognizes the protection, because I'm getting this message when run Preview:

            

But nothing happen when WebSite is uploaded to the server...

Lire plus
Posté le de Tom G.
Paul M.
Paul M.
Moderator

Hello Tom,

Pages with .html extensions can never act as protected pages in WebSite X5.  The pages are locked using PHP code.

Therefore you need to change the file extension of the 'event' page to .php in Step 3  -  Map > Page > Properties > Expert > File Name Format (however, this should happen automatically for every page you set as 'Locked' in the website map...  there should be no need to do this manually).

Your new locked page URL will then be as follows:

http://www.ownitconsignment.com/event.php

Kind regards,

Paul

Search the WebSite X5 Help Center (multilingual)

Lire plus
Posté le de Paul M.
Tom G.
Tom G.
User
Auteur

Hi Paul,

My EVENT page should not be protected. From this page, after pressing <ctrl>e, the EditText.html opened. And that was wrong. I have changed the page to EditText.php and it worked!

Thank you Paul and afsoftware for your input!

Lire plus
Posté le de Tom G.