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

Building a page that only authorized users can access

Explorer ,
Jul 13, 2012 Jul 13, 2012

This question was posted in response to the following article: http://help.adobe.com/en_US/dreamweaver/cs/using/WScbb6b82af5544594822510a94ae8d65-787fa.html

TOPICS
Server side applications
1.6K
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
New Here ,
Jul 13, 2012 Jul 13, 2012

I dont have the option to do step 2. The plus sign is grayed out. What now?

"In the Server Behaviors panel (Window > Server Behaviors), click the Plus button and select User Authentication > Restrict Access To Page from the pop‑up menu."

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 ,
Jul 13, 2012 Jul 13, 2012

What type of page is it? PHP, ASP?  You must been using a supported server model to use server behaviours.

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 ,
Jul 13, 2012 Jul 13, 2012

This thread has now been moved to "Developing server-side applications in Dreamweaver".

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
New Here ,
Jul 13, 2012 Jul 13, 2012

html

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 ,
Jul 13, 2012 Jul 13, 2012

>html

That's your problem.

Server behaviors (SB) create server side script - that is - script that is executed on the server. So by default, regular .html pages are not supported. Try creating a php page and add the SB. That should work

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
New Here ,
Jul 13, 2012 Jul 13, 2012

Everything I've read so far says html is the only way to go:

http://help.adobe.com/en_US/dreamweaver/cs/using/WScbb6b82af5544594822510a94ae8d65-787fa.html

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 ,
Jul 13, 2012 Jul 13, 2012

>Everything I've read so far says html is the only way to go:

I'm not sure why you think so and it doesn't say that in the link you referenced. Dreamweaver inserts server side scripts into the pages you want to restrict - so the page's file extension must be one that your server supports for server side scripting. Have you tried a PHP page? I'm not sure which version of DW you are using, but versions that I have used will not insert a server behavior into an html page. Maybe that's changed in CS6?

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
New Here ,
Jul 13, 2012 Jul 13, 2012

using a supported server model

I tried in in server mode and got the same results


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
New Here ,
Oct 02, 2012 Oct 02, 2012
LATEST

I have been trying to restrict access to my page but, it does not work. I have already set my access levels for users in the database. I have created a log in user page and under the Restrict access based on section, I selected the Username, password and access level option.

When I try and restrict access to page using the user authentication selection under server behavior, I get a message saying that my log in page needs to be created.

I do not understand where I am going wrong. I need to fix my site up asap. Please help.

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