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 awes
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,
> 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 sa
> Just as an aside, there's no reason I can think of that you can't run both
> the Apache module and standalone binary on the same system side by side -
> I've been doing this for about 2 years without trouble.
>
> jason
However, there's no necessity to have the cgi version if you already have
th
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
regul
I guess you will need to have a script sunning after a specific period of
time which would check for the sessions that have expired and then remove
the associated items from the cart. database.
there is no way for you to know if the user closes the browser as php is a
server side language.
I may
> 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 y
> > 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
You'll probably need to trigger the deletion of all expired carts with
something other than trying to guess when the user closes their browser.
Maybe a regular cronjob, or just do it inside your globally-included
function definition script so that any hit to the website can trigger it for
you, or
9 matches
Mail list logo