7 Replies Latest reply: Dec 22, 2008 2:06 PM by Newsgroup_User RSS

    Password (ONLY) Protect a Page

    andrewmcgibbon Community Member
      Is it possible to require JUST a password on a page and NOT a username? We want folks to enter a password we print in an add that users have to enter to access the page. Everything I have found talks about requiring a user ID as well.

      Any assistance would be most appreciated.

      Andy
        • 1. Re: Password (ONLY) Protect a Page
          bregent CommunityMVP
          Anything is possible. How secure does this need to be? What is your experience with server side scripting?
          • 2. Re: Password (ONLY) Protect a Page
            andrewmcgibbon Community Member
            It does NOT need to be particularly secure. We just don't want folks who haven't seen the magazine ad to be able to view it.

            I am not overly experienced with server side scripting.
            • 3. Re: Password (ONLY) Protect a Page
              Newsgroup_User Community Member
              It's simple in PHP. Just create your page with the single field in a form.
              Submit the page to itself, and code the password explicitly in the page.
              You'd also need to set a session variable if the password is correct, so
              that your other "protected" pages can check to make sure that the person
              requesting them is legitimately logged in.

              What scripting language can you use on your server?

              --
              Murray --- ICQ 71997575
              Adobe Community Expert
              (If you *MUST* email me, don't LAUGH when you do so!)
              ==================
              http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
              http://www.dwfaq.com - DW FAQs, Tutorials & Resources
              ==================


              "andrewmcgibbon" <webforumsuser@macromedia.com> wrote in message
              news:gioo5c$cnh$1@forums.macromedia.com...
              > It does NOT need to be particularly secure. We just don't want folks who
              > haven't seen the magazine ad to be able to view it.
              >
              > I am not overly experienced with server side scripting.

              • 4. Re: Password (ONLY) Protect a Page
                andrewmcgibbon Community Member
                Thanks so much for the response guys. What I found worked and was easier was simply using a spry validation text field. We don't have a user login for this area or even any kind of registration. We were just trying to make sure that only those who saw the ad could log into this offer.

                Thank you again for the help and have a great holiday!

                Andy
                • 5. Re: Password (ONLY) Protect a Page
                  Newsgroup_User Community Member
                  Anyone who turns off javascript will be able to log in, though.

                  --
                  Murray --- ICQ 71997575
                  Adobe Community Expert
                  (If you *MUST* email me, don't LAUGH when you do so!)
                  ==================
                  http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
                  http://www.dwfaq.com - DW FAQs, Tutorials & Resources
                  ==================


                  "andrewmcgibbon" <webforumsuser@macromedia.com> wrote in message
                  news:giou89$k3m$1@forums.macromedia.com...
                  > Thanks so much for the response guys. What I found worked and was easier
                  > was
                  > simply using a spry validation text field. We don't have a user login for
                  > this
                  > area or even any kind of registration. We were just trying to make sure
                  > that
                  > only those who saw the ad could log into this offer.
                  >
                  > Thank you again for the help and have a great holiday!
                  >
                  > Andy
                  >

                  • 6. Re: Password (ONLY) Protect a Page
                    andrewmcgibbon Community Member
                    Murray,

                    Thanks so much for bringing that to my attention. In this case, it's not quite as troublesom as security is not a real issue.

                    A
                    • 7. Re: Password (ONLY) Protect a Page
                      Newsgroup_User Community Member
                      I figured - just so you'll know.

                      --
                      Murray --- ICQ 71997575
                      Adobe Community Expert
                      (If you *MUST* email me, don't LAUGH when you do so!)
                      ==================
                      http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
                      http://www.dwfaq.com - DW FAQs, Tutorials & Resources
                      ==================


                      "andrewmcgibbon" <webforumsuser@macromedia.com> wrote in message
                      news:gip0va$n9h$1@forums.macromedia.com...
                      > Murray,
                      >
                      > Thanks so much for bringing that to my attention. In this case, it's not
                      > quite as troublesom as security is not a real issue.
                      >
                      > A