Newsgroups: comp.lang.perl,comp.lang.perl.misc,comp.lang.perl.modules,de.comp.lang.perl,fj.lang.perl,fr.comp.lang.perl
Path: galaxy.trc.rwcp.or.jp!coconuts.jaist!wnoc-tyo-news!aist-nara!odins-suita!chiba-ns!sakunami!yagi!news
From: yoshfuji@ecei.tohoku.ac.jp (YOSHIFUJI, Hideaki)
Subject: Re: HELP: Registration with .htaccess ????
X-Nntp-Posting-Host: eiw03.ec.ecei.tohoku.ac.jp
Content-Type: Text/Plain; charset=US-ASCII
Message-ID: <EIp51p.Lpw@yagi.ecei.tohoku.ac.jp>
Sender: news@ecei.tohoku.ac.jp
Organization: School of Engineering, Tohoku University, JAPAN
X-Newsreader: WinVN 0.99.7J PL01 (x86 32bit)
References: <344FB734.7730DDB3@horizon.nl>
Mime-Version: 1.0
Date: Mon, 27 Oct 1997 06:08:13 GMT
Lines: 23
Xref: galaxy.trc.rwcp.or.jp fj.lang.perl:2457
X-originally-archived-at: http://galaxy.rwcp.or.jp/text/cgi-bin/newsarticle2?ng=fj.lang.perl&nb=2457&hd=a
X-reformat-date: Mon, 18 Oct 2004 15:18:22 +0900
X-reformat-comment: Tabs were expanded into 4 column tabstops by the Galaxy's archiver. See http://katsu.watanabe.name/ancientfj/galaxy-format.html for more info.

In article <344FB734.7730DDB3@horizon.nl>, T. de Konink <tkonink@horizon.nl> says...
>- If someone has logged in (.htacces or ????) and starts a script within
>the zone (of scripts and pages), can I identify (within a Perl-script)
>the person by getting his Loginname somehow.

Use 'REMOTE_USER' environment variable (i.e. $ENV{'REMOTE_USER'}).


>- Can I use Cookies (getting/sending/deleting) within Perl-scripts ?

Use 'HTTP_COOKIE' environment variable (i.e. $ENV{'HTTP_COOKIE'}) to get cookies.
Use 'Set-Cookie' response header to set and/or delete cookies.


For further information about cookie, see 
<URL:http://home.netscape.com/newsref/std/cookie_spec.html> 
and <URL:http://help.netscape.com/kb/server/960513-111.html>.

-- 
YOSHIFUJI, Hideaki
E-Mail   : <URL:mailto:yoshfuji@ecei.tohoku.ac.jp>
Web Page : <URL:http://www.ecei.tohoku.ac.jp/~yoshfuji/>

