Welcome Guest, Not a member yet? Register   Sign In
Detect when a session times out and execute a function
#1

[eluser]funkmyer[/eluser]
Is this possible? If so, has anyone had any experience with this? Basically, I have a shopping cart that decrements stock counts as items are entered into their basket. I have a function that fires when someone "empties" their basket that will free those stock levels back up.

If someone puts items in a cart and then goes out for the day, the session will expire and lose the cart contents, thus stock levels will now be incorrect. Can anyone think of an intelligent way to handle this situation without running an interval'd cron job.

Thanks a bunch, and long live CI!

Smile


Messages In This Thread
Detect when a session times out and execute a function - by El Forum - 03-21-2008, 04:26 AM
Detect when a session times out and execute a function - by El Forum - 03-21-2008, 04:49 AM
Detect when a session times out and execute a function - by El Forum - 03-21-2008, 05:26 AM
Detect when a session times out and execute a function - by El Forum - 03-21-2008, 09:54 AM
Detect when a session times out and execute a function - by El Forum - 03-21-2008, 10:00 AM
Detect when a session times out and execute a function - by El Forum - 03-21-2008, 10:31 AM
Detect when a session times out and execute a function - by El Forum - 03-21-2008, 10:34 AM
Detect when a session times out and execute a function - by El Forum - 03-21-2008, 11:08 AM
Detect when a session times out and execute a function - by El Forum - 03-21-2008, 02:08 PM



Theme © iAndrew 2016 - Forum software by © MyBB