Solved

Delete user from DB using Global.asa

Posted on 2001-08-23
1
182 Views
Last Modified: 2010-05-18
Hi Everybody,

I got a DB that containd the online visitors of the site.
I am trying to delete a visitor from the DB, after he closes his browser.
I recognize the user by his IP.
Here is the code:

Sub Session_OnEnd

Session("LoggedIn")="Logged out"
Application.lock
Application("ActiveUsers") = Application("ActiveUsers") - 1
Application.unlock
SQL="DELETE * From Online Where IP='"&Request.ServerVariables("REMOTE_ADDR")&"'"
ConnOnline.Execute(SQL)

End Sub

I can see that the count of Application("ActiveUsers") is really -1.
But, the records are not being deleted from the DB.

Am I doing something wrong?

Thanks in advance for your help.

Best Regards, Tamar.
0
Comment
Question by:tamar111
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 1

Accepted Solution

by:
Moondancer earned 0 total points
ID: 6830632
I will refund 50 points for this to you, and close it by moving it to the PAQ at zero points.

This is to advise you of all your open questions as of today, so you can update them and/or finalize them.

http://www.experts-exchange.com/jsp/qShow.jsp?qid=20172917
http://www.experts-exchange.com/jsp/qShow.jsp?qid=20172926
http://www.experts-exchange.com/jsp/qShow.jsp?qid=20172919
http://www.experts-exchange.com/jsp/qShow.jsp?qid=20249406

Moondancer
EE Moderator
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question