nikosv has asked for the
wisdom of the Perl Monks concerning the following question:

Instead of using form based authentication I was thinking to use http digest authentication using mod_auth_digest
The problem is how to maintain state between requests.

Let's say that after the user authenticates, accesses a form, fills it and submits it to a CGI script which process it and he is next presented with a new form.
Problem is how to maintain the state between form 1 and 2 ?

a) Using digest auth the credentials are re-submitted on each request so this can be considered as session state keeping. The REMOTE_USER env variable is also set as an identifier;should it be used as an identifying key and store session details in the database using it ? Could work, but how would the server know that the user logged out so it invalidates the session, because digest offers no standard way to log out

b) Mixed mode possible? Can session management be delegated to cookies while authentication taken care of by digest?

When putting a smiley right before a closing parenthesis, do you:

Use two parentheses: (Like this: :) )
Use one parenthesis: (Like this: :)
Reverse direction of the smiley: (Like this: (: )
Use angle/square brackets instead of parentheses
Use C-style commenting to set the smiley off from the closing parenthesis
Make the smiley a dunce: (:>
I disapprove of emoticons
Other