Password Protection Question . . .

Results 1 to 3 of 3

Thread: Password Protection Question . . .

  1. #1
    Join Date
    Dec 1969

    Default Password Protection Question . . .

    Ok, I do have a question. I have a password protected area of the site (Win2k server) -- I understand that after someone logs in, I can set login = true....<BR><BR>and then on all the password protected pages, I can do:<BR><BR>if login = true then<BR>load the page<BR>else<BR>You are not logged in<BR>end if<BR><BR>My question is, do I have to pass the login=true query from page to page to page? what is the best way to do this?<BR><BR>dep<BR>

  2. #2
    Join Date
    Dec 1969

    Default Include File.

    Put it into an include file and you have to include that at the top of all of the pages you wish to have protected.<BR><BR>-Doug

  3. #3
    Join Date
    Dec 1969

    Default RE: Password Protection Question . . .

    Use a Session variable to retain the value then query the session.<BR><BR>ie. If Login validated<BR>&#060;% Session("loggedin")="1" %&#062;<BR><BR>Check to ensure user is logged in on each page:<BR>&#060;%<BR>if Session("loggedin")="1" then<BR> load the page<BR>else<BR> You are not logged in<BR>end if<BR>%&#062;<BR><BR><BR>

Posting Permissions

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