Cookies are much easier, though they are not necessarially the most secure
for a 
variety of reasons, enbedding the username on the web page is not any
secure.
Take a look at the CGI module.

Steve K

> -----Original Message-----
> From: rotaiv [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, January 09, 2001 8:37 AM
> To:   [EMAIL PROTECTED]
> Subject:      Re: Newbie Question - ActivePerl and IIS
> 
> At 01/08/2001  11:23 PM, [EMAIL PROTECTED] wrote:
> 
> >My question:  After a user authenticates, can I pass their username to
> >the perl script so I can read it from a variable.  I know how to pass
> >parameters from script to script but not from IIS to a script.
> 
> 
> I had to do a similar thing for my web team.  Basically, the user name is 
> held in an environmental variable and you just need to read that to 
> determine the username.  See below for a sample .shtml file and the 
> corresponding perl script.
> 
> rotaiv
> 
> 
> [INDEX.SHTML]
> 
> <!--#exec cgi="/cgi-bin/userid.cgi" -->
> 
> 
> [USERID.CGI]
> 
> #perl -w
> 
> $userid=$ENV{LOGON_USER};
> if($userid eq '') {
>    $userid="[blank]"
> }
> 
> print "Content-type: text/html\n\n";
> print "<HTML>\n<HEAD>\n";
> print "<TITLE>\nLogin Example</TITLE>\n";
> print "</HEAD>\n<BODY>\n\n";
> print "Currently logged in as: <B>$userid</B>\n\n";
> print "</BODY>\n</HTML>\n";
> 
> 
> _______________________________________________
> ActivePerl mailing list
> [EMAIL PROTECTED]
> http://listserv.ActiveState.com/mailman/listinfo/activeperl
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activeperl

Reply via email to