Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Clinet closses connection 1

Status
Not open for further replies.

InfernoPyro

Programmer
May 6, 2005
10
US
I'm using perl in cgi, how can I detect when the client leaves the site, or the cgi page? I'd greatly apreciate it if someone could answer my question.

Thanks, Inferno
 
I hate to break this to you but the protocol does not give you any indication of a client continued connection.
Each page that the webserver supplies is sent off into the "ether" with no way of knowing if anything will ever come back again.
Many developers maintain some kind of session using cookies but this only tells you that the current page request is part of a previous session, it does not tell you when the client window closes or the client disconnects.
There maybe some very nonstandard ways of getting some kind of indication as you would like but I could not recommend using them.

Trojan

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top