PHP Dreamweaver and "Restrict Access to Page"

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default PHP Dreamweaver and "Restrict Access to Page"

    Hi,

    I have created a page called members.php which contains information from a
    MYSQL database, amazingly it works.

    When I log in from the page login.php, the members.php page displays fine, if
    i put in the wrong username and password, it does go to the error.php page as
    required.

    Since everything is working fine, I decided to restrict anyone from accessing
    the members.php page directly, as you would, by configuring the Restrict Access
    to Page Server Behaviour.

    It is set to go to another page called deniedaccess.php to differentiate
    between an incorrect login and direct attempt to access the page.

    When I do this, even if I log in correctly via the log in page, I am sent to
    the deniedaccess.php page.

    If I try directly I am also sent to the deniedaccess.php page as expected.

    If I remove the Restrict Access to Page behaviour the log in works again. But
    I can access the members.php page directly.

    Any suggestions?

    cheers

    Macnimation Guest

  2. Similar Questions and Discussions

    1. "Page" and "Rect" props of the Field prop in Javascript API
      Page property of the Field property in Javascript Acrobat API returns an array of pages that this field exists in. On the other hand, "rect" property...
    2. Restrict page access to parent page only (not by permissions)
      I wish to restrict access of a pop-up page to parent page only. i.e. - if a request for "popup.cfm" comes from anywhere except "launch.cfm" then...
    3. an "access denied" page for unauthorised page access
      I would like to show an "access denied" page when an authenticated user tries to access a page for which they are not authorised (role-based). ...
    4. Can't choose "page setup" or "print" - Mac OS 9x
      Hello I have a problem on multiple Macs when using Freehand 10. I have not found any answers on macromedia Support or on the web. Before...
    5. IIS 5 - GetObject fails with "Restrict Anonymous" enabled on Domain Controllers
      I have a developer here with a website running with only "Windows Integrated Authentication" set on a Windows 2000 member server that uses...
  3. #2

    Default Re: PHP Dreamweaver and "Restrict Access to Page"

    Hello.

    If you post the relevant code that checks for access privilege, i'll have a look



    Ross Riley Guest

  4. #3

    Default Re: PHP Dreamweaver and "Restrict Access to Page"

    Hi,

    Thanks for the quick response

    I'll get back to you on the code.

    If it's any help, the authentication is only based on username and password in
    the mysql database.

    I haven't added the Access level as an option, but I think that doesn't matter
    with this issue?

    Cheers

    Macnimation Guest

  5. #4

    Default Re: PHP Dreamweaver and "Restrict Access to Page"

    Macnimation wrote:
    > If I remove the Restrict Access to Page behaviour the log in works again. But
    > I can access the members.php page directly.
    It's a bug that I notified to Macromedia over a year ago. They
    acknowledged it as being "high severity", and then did nothing about it.
    The analysis - and solution - is here:

    [url]http://friendsofed.infopop.net/2/OpenTopic?a=tpc&s=989094322&f=8033053165&m=3241024 21&r=324102421#324102421[/url]

    You need read only the first post (from me).

    --
    David Powers
    Author, "Foundation PHP 5 for Flash" (friends of ED)
    Co-author "PHP Web Development with DW MX 2004" (Apress)
    [url]http://computerbookshelf.com[/url]
    David Powers Guest

  6. #5

    Cool Re: PHP Dreamweaver and "Restrict Access to Page"

    use dreamweaver cs5. it has the ability to restrict.
    dean_shagrath87@yahoo.com Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139