On Tue, May 08, 2001 at 06:59:07PM -0400, Brian Shoemaker wrote:
: Hello.
:
: I am attempting to find some information on using session variables in
: Perl/CGI.
In a CGI environment, you might want to take a look at the CGI::Cookie
module, which comes standard with all modern versions of Perl.
You can accept the form variables and, if the user is authenticated,
set a cookie stating so and check it on all your pages. Of course,
this is kind of a pain.
If you are looking for real sessions I would suggest using mod_perl
for your web site development architecture and the Apache::Session
module for handling sessions.
perldoc CGI::Cookie # for basic cookie info
http://perl.apache.org # for mod_perl info
http://search.cpan.org # to check out Apache::Session
: When someone logs into my site, the script will check a flat-text database
: and if the user has entered a correct username and password, the user will
: be validated. At this point, a session variable will be set so the user will
: not have to login again.
:
: Unfortunately, I can't seem to find any information about how to do this.
: Any info would be appreciated.
Casey West
--
Shooting yourself in the foot with C++
You accidently create a dozen instances of yourself and shoot them all
in the foot. Providing emergency medical assistance is impossible
since you can't tell which are bitwise copies and which are just
pointing at others and saying "That's me, over there."