Link to home
Start Free TrialLog in
Avatar of Raydot
Raydot

asked on

Maintaining state information?

Hello geniuses...

How do I maintain state information in Perl?  What I want to do specifically is set up password protection for a site, but I don't want to do it using the ".htaccess" method since 1) I don't have that much control over our client server and 2) I don't want a pop-up box for PW entry, I'd rather use HTML.

Cookies are ok, but I need a non-cookie answer too, if there is one...thanks...
Avatar of Raydot
Raydot

ASKER

..also, if anyone knows where I can find this info on the web somewhere, I'd be much obliged, although I'm going to leave the question open for all kinds of other reasons...
use the CGI.pm module for setting cookies ( see its docs)


Regarding maintaining STATE other than cookies ..

You could use a TEMP file for each user
here is a URL for some PERL-based "Password Protection" scripts.

http://www.freeperlcode.com/guide/Password_Protection/

you have a variety of options there!!
Avatar of Raydot

ASKER

Well chris18, my problem is what to do if the user doesn't want a cookie set, you know?  Any thoughts on that?  I'll check the freeperlcode.com site, thanks maneshr.
ASKER CERTIFIED SOLUTION
Avatar of Chris S
Chris S
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Raydot

ASKER

Sure.  raydot@erols.com...

i want to know too.
please mail me too .
stanleyhuen@hotmail.com
Avatar of Raydot

ASKER

Thanks!