Garrison Hoffman wrote:

I'm storing session IDs in cookies for 60 days, so I'd like to limit
sessions similarly.  I could certainly run a cron for this, but is there
a better way?
I believe that deleting them via the cron is the standard method. Test out the following (by changing rm to ls -l) before letting it loose on your system.: find /path/to/session/dir /path/to/lock/dir -type -f -mtime +60 -exec rm {} \;

I actual use a more complex technique that looks into the session to decide if it is a session worth saving, such as it contains an affiliate referral, or cart data, etc..

--
_____cliff_rayman_____________________________________
Business Consulting and Turnaround Management
[web] http://www.rayman.com/
[web] http://all-clear-turnaround-management.com/
[eml] [EMAIL PROTECTED]
[phn] 888-736-3802 x701
[fax] 818-743-7404
______________________________________________________

Reply via email to