I've put together some PERL code for a small website I'm making. I have managed to have it take a user given username and password, and be directed to a page based on a third field "access" using MySQL tables.
What I don't have, and need is a way to created a cookie to remember who they are when they log in.
This would serve 2 purpose. Be able to use that cookie to greet them, and use the cookie as security for the pages. (no cookie means they didn't log in, yadda yadda).
I've seen a lot of CGI cookie techniques, none of which I could get to work. Perhaps my Host is missing something? It would only type on the screen what I had in my .pl file.
So I need a bit of code that I can put in a .pl file that would save form info into a cookie that is not CGI, but just PERL.
Please help!
Thanks for your time.
update (broquaint): added formatting and title change (was Should be simple enough.)
In reply to Looking for CGI session guidance by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |