Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Cookie based authentication: Is it secure?

by sinan (Sexton)
on Aug 30, 2000 at 12:24 UTC ( [id://30267]=note: print w/replies, xml ) Need Help??


in reply to Cookie based authentication: Is it secure?

There is something you can do to insure security. Everytime a user logs on, generate a random number, put it on the user's machine as a cookie.
print "Set-Cookie: temp-id=$random_no; domain=yourdomain.com; expires= +".($now+3600);
At the same time, write the same $random_no to a DB on your server, as well as the user's username. So, you can now identify the user using a temporary id.

Hope this helps,

Sinan

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://30267]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-26 00:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found