Counting sessions

Results 1 to 2 of 2

Thread: Counting sessions

  1. #1
    Join Date
    Dec 1969

    Default Counting sessions

    I looked in ASPFAQs Index and could not find something that could help me on this.<BR>NT 4.0 SP 6a MS Acess<BR><BR>I have a login form that checks against a MS Access db for a valid Userid and Pw and creates a session variable that allows visitors to browse the site.<BR><BR>Is there any way to restrict users if more than 5 log in using that same login/password during the same session?<BR><BR>&#039;check to see if in db. Then...<BR><BR>If Not rs.eof Then<BR> strcustID = rs("custID")<BR> Session("custID")= strcustID<BR>End If<BR><BR>Thank you

  2. #2
    Join Date
    Dec 1969

    Default Sure.

    Keep count of the # of active sessions in the database and return that when you verify their username & password.<BR><BR>If it is greater than 5, return a message. If it is less than 5, let them continue.<BR><BR>What&#039;s hard about that?<BR><BR>-Doug

Posting Permissions

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