in reply to reading asp session variables in a perl script

Is your Perl script running as an ASP page or not? ASP is not a language, and ASP pages can be written in VBScript, JScript, or Perl (using ActiveState's PerlScript). If you're trying to read session variables set from an ASP page in a Perl CGI script, you are probably out of luck, since Microsoft does not provide information on how to access their session storage from external programs. You might be able to figure it out if you are storing the ASP session data in a database.
  • Comment on Re: reading asp session variables in a perl script

Replies are listed 'Best First'.
Re: Re: reading asp session variables in a perl script
by Anonymous Monk on Aug 28, 2003 at 15:07 UTC
    the perl script is a seperate cgi file that is called from the asp page

    the session variables, however, are set with vbscript in an asp page...
      Okay then, unless you can figure something out using COM objects you won't be able to access them easilly. Try getting ASP to store them in a SQL database and see if you can find them in there, or else make your VBScript store them in a different way, like writing them to a file or database table. Microsoft's session handling is proprietary, so the only way to get access to it is to reverse engineer it.
        If there's a reasonable number of values involved,and you know which ones you'll need, I'd think it would be simpler to pass them to the CGI script as form values. Is the CGI script being called by a form submit, or just a link, or what?