Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Is Restrict Access server behavior faster than .htaccess control?

Explorer ,
Jun 14, 2009 Jun 14, 2009

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!

TOPICS
Server side applications
691
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 14, 2009 Jun 14, 2009

I would use the Restrict Access to Page server behavior. It's fast, and it also looks more professional than an .htaccess login.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 14, 2009 Jun 14, 2009

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 14, 2009 Jun 14, 2009
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines