Date: Wed, 12 Jun 2002 12:58:40 +0200 (CEST) From: Erwin Lansing <erwin@lansing.dk> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/39191: new port: www/p5-CGI-Session Message-ID: <200206121058.g5CAweHj038234@guineapig.pil.dk>
next in thread | raw e-mail | index | archive | help
>Number: 39191 >Category: ports >Synopsis: new port: www/p5-CGI-Session >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Jun 12 04:00:08 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Erwin Lansing >Release: FreeBSD 4.5-STABLE i386 >Organization: pil.dk >Environment: System: FreeBSD guineapig.pil.dk 4.5-STABLE FreeBSD 4.5-STABLE #9: Wed Apr 24 10:43:13 CEST 2002 root@prison.pil.dk:/usr/obj/usr/src/sys/PRISON i386 >Description: Perl extension for persistent session management >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # p5-CGI-Session # p5-CGI-Session/Makefile # p5-CGI-Session/distinfo # p5-CGI-Session/pkg-comment # p5-CGI-Session/pkg-descr # p5-CGI-Session/files # p5-CGI-Session/files/patch-Session.pm # p5-CGI-Session/pkg-plist # echo c - p5-CGI-Session mkdir -p p5-CGI-Session > /dev/null 2>&1 echo x - p5-CGI-Session/Makefile sed 's/^X//' >p5-CGI-Session/Makefile << 'END-of-p5-CGI-Session/Makefile' X# New ports collection makefile for: p5-CGI-Session X# Date created: 12 June 2002 X# Whom: Erwin Lansing <erwin@lansing.dk> X# X# $FreeBSD$ X# X XPORTNAME= CGI-Session XPORTVERSION= 2.91 XCATEGORIES= www perl5 XMASTER_SITES= ${MASTER_SITE_PERL_CPAN} XMASTER_SITE_SUBDIR= CGI XPKGNAMEPREFIX= p5- X XMAINTAINER= erwin@lansing.dk X XBUILD_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5 XRUN_DEPENDS= ${BUILD_DEPENDS} X XPERL_CONFIGURE= yes X XMAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION} XMAN3= CGI::Session::DB_File.3 \ X CGI::Session::MySQL.3 \ X CGI::Session::MD5.3 \ X CGI::Session::File.3 \ X CGI::Session.3 X X.include <bsd.port.mk> END-of-p5-CGI-Session/Makefile echo x - p5-CGI-Session/distinfo sed 's/^X//' >p5-CGI-Session/distinfo << 'END-of-p5-CGI-Session/distinfo' XMD5 (CGI-Session-2.91.tar.gz) = 95c9fac80fec2b13526548f81f6ec147 END-of-p5-CGI-Session/distinfo echo x - p5-CGI-Session/pkg-comment sed 's/^X//' >p5-CGI-Session/pkg-comment << 'END-of-p5-CGI-Session/pkg-comment' XPerl extension for persistent session management END-of-p5-CGI-Session/pkg-comment echo x - p5-CGI-Session/pkg-descr sed 's/^X//' >p5-CGI-Session/pkg-descr << 'END-of-p5-CGI-Session/pkg-descr' X "CGI::Session" is Perl5 library that provides an easy persistent session X management system across HTTP requests. Session persistence is a very X important issue in web applications. Shopping carts, user-recognition X features, login and authentication methods and etc. all require X persistent session management mechanism, which is both secure and X reliable. "CGI::Session" provides with just that. You can read the whole X documentation as a tutorial on session management. But if you are X already familiar with "CGI::Session" go to the methods section for the X list of all the methods available. X XWWW: http://search.cpan.org/search?dist=CGI-Session X X- Erwin Lansing Xerwin@lansing.dk END-of-p5-CGI-Session/pkg-descr echo c - p5-CGI-Session/files mkdir -p p5-CGI-Session/files > /dev/null 2>&1 echo x - p5-CGI-Session/files/patch-Session.pm sed 's/^X//' >p5-CGI-Session/files/patch-Session.pm << 'END-of-p5-CGI-Session/files/patch-Session.pm' X--- Session.pm.orig Wed Jun 12 11:56:43 2002 X+++ Session.pm Wed Jun 12 12:04:39 2002 X@@ -915,7 +915,7 @@ X =head2 STANDARD INSTALLATION X X The library is installed with just like other Perl libraries, or via CPAN interactive X-shell (Perl -MCPAN -e install CGI::Session). X+shell (Perl -MCPAN C<-e> install CGI::Session). X X Installation can also be done by following below instructions: X X@@ -1117,7 +1117,7 @@ X above example. So, how do we "mark" the user? There are several ways of X "marking". X X-=head3 IDENTIFYING THE USER VIA CGI QUERY X+=item IDENTIFYING THE USER VIA CGI QUERY X X One way of doing it is to append the session id to every single link in the X web site: X@@ -1167,7 +1167,7 @@ X session id appended to them. Too bad, because the client has to start X everything over again. X X-=head3 INDENTIFYING THE USER VIA COOKIES X+=item INDENTIFYING THE USER VIA COOKIES X X We can deal with the above problem by sending the client a cookie. This cookie X will hold the session id only! Thus if the client visits some other site, or X@@ -1211,7 +1211,7 @@ X the C<sid> parameter in the URL, and if that fails, then it will default to X undef, which will force C<CGI::Session> to create a new id for the client. X X-=head3 IDENTIFYING THE USER VIA PATH_INFO X+=item IDENTIFYING THE USER VIA PATH_INFO X X The least common, but at the same time quite convenient way of C<marking> users X with a session id is appending the session id to the url of the script X@@ -1363,7 +1363,7 @@ X X =back X X-=head3 SPECIAL NAMES X+=item SPECIAL NAMES X X When you create a fresh-blank session, it's not blank as it seems. It is X initialized with the following 4 parameters, which are serialized together END-of-p5-CGI-Session/files/patch-Session.pm echo x - p5-CGI-Session/pkg-plist sed 's/^X//' >p5-CGI-Session/pkg-plist << 'END-of-p5-CGI-Session/pkg-plist' Xlib/perl5/site_perl/%%PERL_VER%%/CGI/Session/DB_File.pm Xlib/perl5/site_perl/%%PERL_VER%%/CGI/Session/MD5.pm Xlib/perl5/site_perl/%%PERL_VER%%/CGI/Session/MySQL.pm Xlib/perl5/site_perl/%%PERL_VER%%/CGI/Session/File.pm Xlib/perl5/site_perl/%%PERL_VER%%/CGI/Session.pm Xlib/perl5/site_perl/%%PERL_VER%%/auto/CGI/Session/id.al Xlib/perl5/site_perl/%%PERL_VER%%/auto/CGI/Session/remote_addr.al Xlib/perl5/site_perl/%%PERL_VER%%/auto/CGI/Session/remote_host.al Xlib/perl5/site_perl/%%PERL_VER%%/auto/CGI/Session/close.al Xlib/perl5/site_perl/%%PERL_VER%%/auto/CGI/Session/_date_shortcuts.al Xlib/perl5/site_perl/%%PERL_VER%%/auto/CGI/Session/expires.al Xlib/perl5/site_perl/%%PERL_VER%%/auto/CGI/Session/ctime.al Xlib/perl5/site_perl/%%PERL_VER%%/auto/CGI/Session/atime.al Xlib/perl5/site_perl/%%PERL_VER%%/auto/CGI/Session/param_hashref.al Xlib/perl5/site_perl/%%PERL_VER%%/auto/CGI/Session/save_param.al Xlib/perl5/site_perl/%%PERL_VER%%/auto/CGI/Session/load_param.al Xlib/perl5/site_perl/%%PERL_VER%%/auto/CGI/Session/clear.al Xlib/perl5/site_perl/%%PERL_VER%%/auto/CGI/Session/error.al Xlib/perl5/site_perl/%%PERL_VER%%/auto/CGI/Session/delete.al Xlib/perl5/site_perl/%%PERL_VER%%/auto/CGI/Session/version.al Xlib/perl5/site_perl/%%PERL_VER%%/auto/CGI/Session/dump.al Xlib/perl5/site_perl/%%PERL_VER%%/auto/CGI/Session/TIEHASH.al Xlib/perl5/site_perl/%%PERL_VER%%/auto/CGI/Session/FETCH.al Xlib/perl5/site_perl/%%PERL_VER%%/auto/CGI/Session/STORE.al Xlib/perl5/site_perl/%%PERL_VER%%/auto/CGI/Session/DELETE.al Xlib/perl5/site_perl/%%PERL_VER%%/auto/CGI/Session/EXISTS.al Xlib/perl5/site_perl/%%PERL_VER%%/auto/CGI/Session/FIRSTKEY.al Xlib/perl5/site_perl/%%PERL_VER%%/auto/CGI/Session/NEXTKEY.al Xlib/perl5/site_perl/%%PERL_VER%%/auto/CGI/Session/CLEAR.al Xlib/perl5/site_perl/%%PERL_VER%%/auto/CGI/Session/autosplit.ix Xlib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/CGI/Session/.packlist X@dirrm lib/perl5/site_perl/%%PERL_VER%%/CGI/Session X@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/CGI 2>/dev/null || true X@dirrm lib/perl5/site_perl/%%PERL_VER%%/auto/CGI/Session X@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/auto/CGI/Session 2>/dev/null || true X@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/CGI/Session X@unexec %D/lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/CGI 2>/dev/null || true END-of-p5-CGI-Session/pkg-plist exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200206121058.g5CAweHj038234>