From: "nafiseh saberi" <[EMAIL PROTECTED]>
> hi dear.
> you can use...
> require "cgi-lib.pl";
PLEASE FORGET cgi-lib.pl USE CGI.pm !
> &ReadParse;
> $PASS=$in{"pass"};
>
> pass exists in web
> and PASS is a variable that you can use it in your
> program.
This will NOT read a session variable (for any definition of
"session").
This code reads and parses the QUERY_STRING or POSTed data
and stores them in hash %in. And then copies the value of the
parameter "pass" to a variable.
For people used to ASPs. This code is equivalent to ASP's
PASS = Request("pass")
not
PASS = Session("pass")
Now back to the original question.
AFAIK you can't access the data in ASP Session from a normal
Perl (or PerlIS.dll) CGI script. You can write ASPs in PerlScript
though and then do this :
$PASS = $Session->{pass};
With one of the ASP modules (not sure which one is still
maintained. ASP or Win32::ASP) you can write the perl code
almos as if you were a normal CGI. (print "foo" instead of
$Response->Write("foo") etc.)
There are also modules for sessions for normal CGIs or Apache's
mod_perl. http://search.cpan.org
Or you can use cookies.
Jenda
=========== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ==========
There is a reason for living. There must be. I've seen it somewhere.
It's just that in the mess on my table ... and in my brain.
I can't find it.
--- me
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]