Re: [PHP] deleting cart items on session expire

2001-02-16 Thread Lic. Rodolfo Gonzalez Gonzalez
On Fri, 16 Feb 2001, Jason Brooke wrote: However, there's no necessity to have the cgi version if you already have the modular version. All that is needed is to call the appropriate script No there's not - I think that goes without saying though. install' - then you can use this awesome

Re: [PHP] deleting cart items on session expire

2001-02-15 Thread Jørg V . Bryne
Well, why not store the item's in the session-var? When the session dies because of timeout or user-intervention, the items dissapear too. Or store a timestamp along with the items, and refresh the timestamps as needed. Then put in a cron-job to delete out-of-date items left in the DB at

Re: [PHP] deleting cart items on session expire

2001-02-15 Thread Jason Brooke
However, there's no necessity to have the cgi version if you already have the modular version. All that is needed is to call the appropriate script using a tool such as 'wget'. This can be done manually or from cron as appropriate. Billy No there's not - I think that goes without saying

Re: [PHP] deleting cart items on session expire

2001-02-15 Thread Joseph H Blythe
Thanks all, This gives me a good start, I think I will just get cron to do it at a certain time of day, the only problem is trying to tell which sessions have expired as the database is not going to know this. Regards Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] deleting cart items on session expire

2001-02-14 Thread Joseph H Blythe
hey all, I was wondering how one would suggest removing items from a cart system once the session lifetime has expired. I have it set to the default 0, which expires the session on browser close, what I want to be able to do is "delete * from Cart where session='$PHPSESSID'" when the user

Re: [PHP] deleting cart items on session expire

2001-02-14 Thread Jason Brooke
, or perhaps just put it in the script that's used when creating a new cart for someone. jason - Original Message - From: "Joseph H Blythe" [EMAIL PROTECTED] To: "php-general" [EMAIL PROTECTED] Sent: Friday, February 16, 2001 3:29 PM Subject: [PHP] deleting cart items on s

Re: [PHP] deleting cart items on session expire

2001-02-14 Thread Christopher Ostmo
hey all, I was wondering how one would suggest removing items from a cart system once the session lifetime has expired. I have it set to the default 0, which expires the session on browser close, what I want to be able to do is "delete * from Cart where session='$PHPSESSID'" when the

Re: [PHP] deleting cart items on session expire

2001-02-14 Thread Jason Brooke
If you're already using the CGI version of PHP, there isn't any disadvantage to using either it or perl scripts to do this clean-up. If you're running the Apache module version of PHP, you'll need to find a tool that can be invoked from the command prompt (such as perl) to do this for you.

Re: [PHP] deleting cart items on session expire

2001-02-14 Thread Ankur Verma
ject: [PHP] deleting cart items on session expire hey all, I was wondering how one would suggest removing items from a cart system once the session lifetime has expired. I have it set to the default 0, which expires the session on browser close, what I want to be able to do is "delete