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...
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...
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
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!!
http://www.freeperlcode.com/guide/Password_Protection/
you have a variety of options there!!
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Sure. raydot@erols.com...
i want to know too.
please mail me too .
stanleyhuen@hotmail.com
please mail me too .
stanleyhuen@hotmail.com
ASKER
Thanks!
ASKER