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

Re: Re: Secure Session Management

by valdez (Monsignor)
on Sep 08, 2002 at 21:37 UTC ( #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?

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2020-01-26 20:43 GMT
Find Nodes?
    Voting Booth?