How to open page only after authentication?
Autore: Tom G.
Visite 1849,
Followers 1,
Condiviso 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?
Postato il
Hey Tom,
Here
https://wsx5.afsoftware.fr
Autore
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...
Autore
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...
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)
Autore
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!