[ic] long-lived sessions/carts?

Paul Jordan paul at gishnetwork.com
Wed Feb 22 21:11:00 UTC 2012



>From: Grant
>>> > > I'm currently expiring sessions after 2 days:
>>> > >
>>> > > find /cat/tmp -type f -mtime +2 | xargs --no-run-if-empty rm && find
>>> > > /cat/tmp -depth -type d -empty -mtime +2 | xargs --no-run-if-empty
>>> > > rmdir && find /cat/session -type f -mtime +2 | 
>>> > > xargs --no-run-if-empty
>>> > > rm && find /cat/session -depth -type d -empty -mtime +2 | xargs
>>> > > --no-run-if-empty rmdir
>>> > >
>>> > > Has anyone tried waiting much longer than that?  Maybe 30, 60, or 
>>> > > even
>>> > > 90 days?  When I'm shopping online, I've noticed it's nice to add
>>> > > something to my cart and come back much later to find the item still
>>> > > in there without having to create an account.
>>> >
>>> > You could always do a saved-cart routine, which sets a cookie for the
>>> > user and saves their cart in a table. Then, when they come back, you 
>>> > can
>>> > reload their cart if the cookie is present.
>>>
>>>
>>> What about a new type of session expiration that removed everything but 
>>> the
>>> cart contents? This way if one comes back their cart is still there, but
>>> their billing address (if even input) was gone? To better explain:
>>>
>>>     ExpireSensitive 3 hours
>>>     ExpireTotal    7 days
>>>
>>>
>>> Paul
>>>
>>
>> I like this idea allot. It could be extended to maybe FreshCoffee,
>> FreshBaked, DayOld, MapleSyrup, FruitCake, MoonShine, and finally
>> Twinkie! haha.
>>
>> Rick
>
>Do you think this is a better idea than saving a table key to cart
>contents in a cookie?  I suppose it wouldn't require cookies but it
>would obviously require some IC core changes.
>


I don't think it would require core changes, maybe just a smarter session 
cleaner script that parses tmp files and removes sensitive info. Granted 
that might be an inefficient way to go about it.


Paul 




More information about the interchange-users mailing list