dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: Strange Session

  1. #1
    Join Date
    Jul 2003
    Posts
    24

    Strange Session

    I am using code to check if a user is logged in.
    e.g.

    If Session("LoggedIn") <> True Then
    Response.Redirect("Login.asp")
    End If

    I am also keeping a client id session.

    One of my pages is loosing the log in session but the client id session is still valid, indicating that a session timeout has not occurred.

    There is nothing in the script that would set the session to false.

    Could this be an IIS problem?

    Any ideas as to what is causing this?

  2. #2
    Join Date
    Mar 2004
    Location
    Glasgow, Scotland
    Posts
    613
    This may not be the answer, but are you saving the Session("LoggedIn") as "True", as I understand it, the session variable is an array of type string, not boolean (I think).

    Try

    If CBool(Session("LoggedIn")) <> True then

    ....


    Just a thought anyway

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles