in reply to Simplest CGI Persistence Solution?
One suggestion: in a "Quick and Dirty" solution you can dispense with flock if your session ids are (virtually) guaranteed to be unique like in my solution. No one's going to ever be writing to the same file at the same time, so no need to lock the file. The only problem with this is that session files will collect on the server... to take care of this I set my CGI to wipe out all session files more than 2 days old every time it's run. You could do the same kind of thing with cron if you wanted.
The whole thing is like (maybe) 15 lines of code to maintain state. Why not?
Gary Blackburn
Trained Killer
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Simplest CGI Persistence Solution?
by Tortue (Scribe) on Apr 02, 2001 at 16:26 UTC | |
by Trimbach (Curate) on Apr 02, 2001 at 16:46 UTC |