> I am running a 'very' simple script that just prints out CGI environment
> variables. When I execute the script on my ISP's Linux server the UNIQUE_ID
> variable is displayed. Running the same script on IIS 5 does not produce the
> variable ... Any clues ??
UNIQUE_ID is generated by Apache, more specifically (from httpd.conf):
LoadModule unique_id_module /usr/lib/apache/mod_unique_id.so
> I am experimenting with saving session and maintaining state on the server
> side. CGI provides a mechanism to do so by writing to text files. I am
> concerned about running out of space on my limited hosting space. Is there
> any creative solution to delete the files that are no longer in use. Running
> a daemon in the background is not an option.
Do you want to save session state between visits or during a single
vists only?
Either way you could generate a cookie, storing session state in a file
record (perhaps in a database or just a plain text file) that would work
with both Apache and IIS.
Apache's UNIQUE_ID does not do this, it genera\tes a unique id where:
* We want an identifier which is unique across all hits, everywhere.
* "everywhere" includes multiple httpd instances on the same machine,
or on
* multiple machines. Essentially "everywhere" should include all possible
* httpds across all servers at a particular "site". We make some
assumptions
* that if the site has a cluster of machines then their time is relatively
* synchronized. We also assume that the first address returned by a
* gethostbyname (gethostname()) is unique across all the machines at the
* "site".
--
Simon Oliver
_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web