Session.Variables vs. Passwords

Results 1 to 3 of 3

Thread: Session.Variables vs. Passwords

  1. #1
    scopeout Guest

    Default Session.Variables vs. Passwords

    How can I pass a session varialbe from 1 page to another, and If the session is not there or not valid, redirect them some where else. Im currently using something like this:<BR><BR>If Session("strValidPassWord") = " " Then<BR> Response.Redirect("home.asp")<BR>Else<BR><BR>It passes True and diplays the page, but if I copy the url and paste it back in the address box, it still shows the page, rather than redirecting then to back to the password page.

  2. #2
    S Guest

    Default RE: Session.Variables vs. Passwords

    Do a search for the 4 Guys article on password protecting your site. It uses the same logic you mention. I&#039;ve used a modified version of that on several of my sites with no problems.

  3. #3
    Steve Cimino Guest

    Default RE: Session.Variables vs. Passwords

    Because you&#039;re checking for a space, but if the session variable is empty, it will contain the empty string ("")<BR><BR>If Session("strValidPassWord") = "" Then &#039;Should work

Posting Permissions

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