gontran kirjoitti:
> Hello,
> 
> I would like to know if it's possible to automatically perform a db
> operation at the end of a session.
> 
> For example: a client book an item in a store but don't ckeck out his
> cart and close his browser. The item booked (which was unavailable
> during the session) is now available for other clients.
> 
> Any help will be nice.

In theory "you can't do that". You just don't know moment end user 
closes browser and there is very little you can do about it.

One option is to use some reservation lifetime (and tell it to user 
too). Like "your book is reserved for you exclusively next 10 minutes". 
After that it will be free for next reservation. And buyer might need to 
wait in queue to get his/her book.

-- 
Jani Tiainen

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to