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

Hi
is it possible to make a server with cookies based authentication ?

I will be using IO::Socket to accept connections and I need some kind of authentication system so I can force the user login, before processing actions.

Your help is highly appreciated.

  • Comment on Daemon with cookies based authentication

Replies are listed 'Best First'.
Re: Daemon with cookies based authentication
by ikegami (Patriarch) on Feb 01, 2010 at 04:09 UTC

    is it possible to make a server with cookies based authentication ?

    You know about cookie-based authentication because you've seen it used. So yeah, I'm pretty sure it can be done.

Re: Daemon with cookies based authentication
by aquarium (Curate) on Feb 01, 2010 at 05:09 UTC
    cookies provide a means of remembering user session, preferences, etc. and don't provide a means of authentication in and of themselves afaik. So cookies are used usually together with HTTP BASIC authentication mechanism, for the authentication itself. That's where you would normally have a .htpasswd access file on a unix/linux web server to setup users and passwords for access, and the web browser shows a simple (unencrypted) login dialog.
    the hardest line to type correctly is: stty erase ^H