Solved

Maintaining state information?

Posted on 2000-05-08
8
126 Views
Last Modified: 2010-03-05
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...
0
Comment
Question by:Raydot
8 Comments
 
LVL 3

Author Comment

by:Raydot
ID: 2789027
..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...
0
 
LVL 6

Expert Comment

by:christopher sagayam
ID: 2789158
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
0
 
LVL 16

Expert Comment

by:maneshr
ID: 2789169
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!!
0
 
LVL 3

Author Comment

by:Raydot
ID: 2789204
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.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 6

Accepted Solution

by:
christopher sagayam earned 100 total points
ID: 2789270
You have to use a TEMP file for every USER ..

I can email you the detailed steps
0
 
LVL 3

Author Comment

by:Raydot
ID: 2789278
Sure.  raydot@erols.com...

0
 

Expert Comment

by:bighuen
ID: 2792876
i want to know too.
please mail me too .
stanleyhuen@hotmail.com
0
 
LVL 3

Author Comment

by:Raydot
ID: 2810974
Thanks!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A year or so back I was asked to have a play with MongoDB; within half an hour I had downloaded (http://www.mongodb.org/downloads),  installed and started the daemon, and had a console window open. After an hour or two of playing at the command …
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now