Copy link to clipboard
Copied
My site uses cookies that are set from the login page to pass values to the next page's url links and to the text. Visitors must login or they won't have the cookies available to them.
Since it is recommended to put Restrict Access on every page it seems to me that that will slow down server response time. My potential solution is to use .htaccess, instead of Restrict Access SB to force visitors through the Login page. BUT, since deploying .htaccess means that it must search through every sub-folder to see if an .htaccess file is deployed in them too, that must also slow down server response time even if there is no .htaccess file anywhere down in the sub-folder structure.
So, am I right that using Restrict Access server behaviors on a big site slows down server response time, or is that server behavior simply passing the MM_Username etc, on to the next page in a manner that the subsequent page doesn't need to check with the server beyond dishing up the page with the cookie info in it?
...and, is there a way to tell .htaccess to restrict its search to only the top level folder?
Comparing these two tools, which would you choose and why?
As always, thanks for your help!
Copy link to clipboard
Copied
I would use the Restrict Access to Page server behavior. It's fast, and it also looks more professional than an .htaccess login.
Copy link to clipboard
Copied
Hi David,
Yes I agree with your assessment of Restrict Access looking more professional than the login screen of .htaccess Password Protection, but I've found ^Rewrite code that will redirect the visitor around to my own login pages and avoid the ugly look of the .htaccess.
Since you've allayed my fears about speed and server demand, I'll post up my next question.
Points to you!
Brian
Copy link to clipboard
Copied
Hey David,
a further question on this matter...
Since I'm trying to avoid SESSIONS and use COOKIES instead, can I simply replace the SESSIONS code in the Restrict Access Server Behavior with COOKIES?
Brian
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more