Knowing when a visitor leaves.

From: Date: Sat, 21 Jul 2001 05:29:00 +0000
Subject: Knowing when a visitor leaves.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-58998@lists.php.net to get a copy of this message
Hi all I have a small web shop, what happens in it is that when a visitor clicks a displayed object ( adds it to his shopping cart) then it is marked as booked in the MySQL table, the problem is that when the visitor leaves without checking out, i.e. just chooses sumthing and decides to leave the object in the table remains booked and is not displayed to other visitors, is there any way that i can see when a person leaves the webshop, when he closes the browser window, the variables his session is destroyed automaitically right ? but that does'nt change allow me to attach a subroutine so that the changes are made in the tables. the solution i have thought of is to execute a subroutine when the session expires, but how do i do that, how do i set the time for session to expire and how do i attach a function/subroutine to that. the final question is that on this list when we use the word "client" it means the person hu is visiting the website right as in "client browser", and how does the SSL "client " differ from this. thanx alot in advance -- Saquib Farooq @ Systems @ SDNPK Islamabad

« previous php.general (#58998) next »