Solved

Maintaining state information?

Posted on 2000-05-08
8
129 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
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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
 
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Filtering a file to table 9 101
work on ods spreadsheet with perl in ubuntu 4 80
compress files in RAR using perl 13 83
Transforming a Soap message to a simple xml message! 10 150
Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
I have been pestered over the years to produce and distribute regular data extracts, and often the request have explicitly requested the data be emailed as an Excel attachement; specifically Excel, as it appears: CSV files confuse (no Red or Green h…
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…

856 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