Greetings Monks
I'm writing a CGI and I want to have authenticated sessions. I can to authentication fine, but I've never done sessions before. I've always written CGI that accept credentials and commands in one go, so I never had to do any kind of sessions before.
Yes, this will be SSL encrypted.
Cookies seem to be involved, but I don't know a thing about what they should look like, how they should act, etc...
I'm thinking of using the concept from one-time-passwords. The server generates a new token on each request and only accepts each token once. If a baddie gets the token they can't use it if the legit user already has, or if they use it before the legit user, the legit user gets locked out and they know something is wrong.
I'm trying to do something that really wants authenticated sessions and I really want to do this right.
Update:
Even if I don't write my own session handler, I should know how sessions are supposed to work so I can pick a good one to use.
In reply to Session Security? by pileofrogs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |