[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 149
  • Last Modified:

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...
0
Raydot
Asked:
Raydot
1 Solution
 
RaydotAuthor Commented:
..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
 
christopher sagayamCommented:
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
 
maneshrCommented:
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
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

 
RaydotAuthor Commented:
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
 
christopher sagayamCommented:
You have to use a TEMP file for every USER ..

I can email you the detailed steps
0
 
RaydotAuthor Commented:
Sure.  raydot@erols.com...

0
 
bighuenCommented:
i want to know too.
please mail me too .
stanleyhuen@hotmail.com
0
 
RaydotAuthor Commented:
Thanks!
0

Featured Post

[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now