PerlのCGI – セッションとCookieの手引き
はじめに – ほぼ1年前、私はPerlのCGIアプリケーションでセッションとCookieを実装するための多くの苦労した。だから、すべてあなたと私の仕事を共有すると考えられている。 私は自分の方法でそれをやってみたかった… 仮定は、Webサーバー、つまりApacheがCGIスクリプトを実行するために有効になっている Step 1] Write Auth.pm Perl module – Please simply copy following Auth.pm perl module for authentication using Session and Cookies… [root@arun ~]# cat /var/application/module/Auth.pm package Auth; ### Subroutine to authenticate user sub User { my ($ref_page) = (@_); ### Session information my $sid = $ref_page->cookie(“APP_SID”) || undef; my $session = …