Question on Security

Results 1 to 6 of 6

Thread: Question on Security

  1. #1
    MC Guest

    Default Question on Security

    Instead of using Session Variables to track my users, I am storing it in the DB. But when the users log off, the variable is still in the DB and they can still access the page without logging in by saving it as a favorite page. <BR><BR>My question is there a way to set a variable in the DB automatically after a user is not using the web application?

  2. #2
    Joshua Mann Guest

    Default RE: Question on Security

    You may be able to use the Response.IsClientConnected method to carry out any actions if it returns false.

  3. #3
    MC Guest

    Default RE: Question on Security

    Yeah I did that, but it doesn&#039t do anything. I want to change the DB if it&#039s not connected anymore. Is there a time limit?

  4. #4
    Joshua Mann Guest

    Default RE: Question on Security

    Is there a time limit with what? IsClientConnected sends data to the client(like a ping) to see if there &#039Connected&#039. Your not going to get the database to write a new variable to itself after a certain amount of time. If IsClientConnected is not working for you then theres is something wrong with the way your using it.

  5. #5
    MC Guest

    Default RE: Question on Security

    Here&#039s my code.<BR><BR>If the user is connected, I would call the Sub AddScreen to save the field as "6", if not save the field as "0" in the DB. <BR>If Not response.isclientconnected then<BR> Call AddScreen(UserId, 0)<BR> Response.End <BR>else<BR> Call AddScreen(UserId, 6) <BR>end if

  6. #6
    Join Date
    Dec 1969

    Default RE: Question on Security

    you can set the variable in the db in the Session OnEnd in the global.asa - this is a place to put clean up sode.<BR>good luck

Posting Permissions

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