Results 1 to 4 of 4
  1. #1
    New Lounger
    Join Date
    May 2002
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Password section of a web (2002)

    Does anyone know how to make a section of a web have password access? I've got a regular web but want limit access to members of my organization to the political area of that web because of Federal Election Laws. How do I do this?

  2. #2
    Plutonium Lounger Leif's Avatar
    Join Date
    Dec 2000
    Location
    U.K.
    Posts
    14,010
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Password section of a web (2002)

    Various JavaScript ideas here at the JavaScript Source

  3. #3
    2 Star Lounger
    Join Date
    Aug 2001
    Location
    USA
    Posts
    126
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Password section of a web (2002)

    I use VBScript with ASP to block private pages from public viewing.

    When a member logins in, the following session variable is set as part of the login routine.
    Session("vIDOK")=True

    I put the following code at the top of each private page:
    <%
    If Session("vIDOK")=False then
    response.redirect "login.htm"
    end if
    %>

    Anyone not logged in that attempts to load the page is re-directed to the login page.

  4. #4
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Password section of a web (2002)


Posting Permissions

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