I need to pass a secure key around in a session variable and i'm having trouble finding a manual that gives me a clear idea as to what is happening with, and how to use sha1().
When the user logs in their static key is retrieved from the db and then this key is passed around in the session and is used in every query that the user makes on the db. Like so.
Expand|Select|Wrap|Line Numbers
- SELECT * FROM table WHERE 'name' = 'joe' AND 'key' = sha1(numerickey);
Thanks in advance!