Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Re: Secure Session Management

by valdez (Monsignor)
on Sep 08, 2002 at 21:37 UTC ( [id://196096]=note: print w/replies, xml ) Need Help??


in reply to Re: Secure Session Management
in thread Secure Session Management

Great explanation, hacker!

I would like to add few considerations to what you said.

  • hidden fields make impossible to cache generated pages;
  • hidden fields can hold different session_ids for different instances of the same browser, and this can be useful sometimes;
  • this is impossible using cookies;
  • your way to generate session ids can be improved using the code coming right from the Eagle Book:
    use MD5 (); $MAC = MD5->hexhash($secret . MD5->hexhash(join '', $secret, @fields));

    Now you also have a secret string, not predictable by the client, and double md5, to prevent dirty tricks over digested string. There is a nice introduction about this at page 213 of the Eagle Book.

Ciao, Valerio

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-20 00:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found