How would i be able to update a mysql database field when

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
blubba54
Forum Newbie
Posts: 9
Joined: Fri Jul 05, 2002 6:53 am

How would i be able to update a mysql database field when

Post by blubba54 »

How would i be able to update a mysql database field when the user
closes the browser window? And to do this without opening a new window on "unload" in body or somthing like that?

/thanks in advance

:idea: :?:
User avatar
llimllib
Moderator
Posts: 466
Joined: Mon Jul 01, 2002 2:19 pm
Location: Baltimore, MD

Post by llimllib »

Unfortunately, HTTP is stateless, and as such, you have to assume that sessions are open-ended. You've hit on the only solution, opening a document on unload(), but that is far from garaunteed to work. There is no reliable solution.
Post Reply