Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

(z) Re: CGI security

by zigdon (Deacon)
on Mar 16, 2004 at 17:20 UTC ( [id://337065]=note: print w/replies, xml ) Need Help??


in reply to CGI security

Just a quick comment about sessions - you don't have to use cookies to use sessions. You can pass the session key around in the URL, or in a hidden variable (as long as the user only navigates via form submit buttons). As long as your session key is reasonably random, people won't be able to just hit the CGI with a made-up, but valid, key. Then, the CGI that requires a valid login can check the session file (kept on the server) and see if it exists, and corresponds to a logged in user.

-- zigdon

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2024-04-19 14:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found