Login Cookies

nike_guy_man's picture

They have: 840 posts

Joined: Sep 2000

Hello
My site needs people to report to me when they lose a match.
I want to eliminate the need to enter password repeatedly...
How would I go about writing a program so when they login, it remembers password and username, then calls it back and puts in the values automatically when they go to the report page?
Would it be better to use a javascript cookie?
I tried to write it as:

print "Set-Cookie: name=$formdata{'name'} pass=$formdata{'pass'}";
'
all it does is actually print that in the browser, without a MIME line above it. What did I do?

Laughing out loud

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.