Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Dear Monks, is important to me, anyone know is that the session id generated by cgi, just like the IIS does. if not how can i do so. I know how the expires thing goes.I dun have the database system, is all directory server. Now my page is reloading although i logout. coz i dun specify the session id and expired it, but is cgi already hae the module for it. or need to generate by myself. any good help site for this. i need it urgently. thank please
  • Comment on Is cgi have it define the Session id like IIS

Replies are listed 'Best First'.
Re: Is cgi have it define the Session id like IIS
by gildir (Pilgrim) on Jun 07, 2001 at 15:41 UTC
    Look at Apache::Session module. It works for me in Apache/mod_perl environment, but I think it could be used in CGI too.
    Some Web application frameworks have their own session mechanisms, so maybe you want to consider using some of these frameworks instead of plain CGI. Look at the Web Application Framework thread.
Re: Is cgi have it define the Session id like IIS
by tomhukins (Curate) on Jun 07, 2001 at 16:59 UTC

    You don't say why you've chosen CGI instead of ASP (I assume you mean ASP when you mention IIS).

    If you've chosen CGI just because it supports Perl, you should be aware that Perl can also be used to write ASP pages - when I developed an IIS site I used PerlScript and ASP and found this combination better than VBScript or plain CGI, although I prefer mod_perl better still!

    You may already know this, but there are Perl and ASP programmers out there who don't, so this might be useful.