Hello.

Don't know if it will be useful to you, but you can try CGI::Session or
Apache::Session modules
I read some about in www.cpan.org and found them very useful.

They create cookies to maintain a user's session. Users need to authenticate
via username and password. After that you can use the cookie for allowing
access on your site.
I personally haven't used them because my host doesn't support those
modules, but what I have read seems very nice.

-rm-
----- Original Message -----
From: "Yannick Warnier" <[EMAIL PROTECTED]>
To: "perl beginners list" <[EMAIL PROTECTED]>
Sent: Tuesday, July 15, 2003 10:50 AM
Subject: http authentication via perl CGI script?


> Hi all,
>
> I'm having a hard time finding how an http authentication works and how
> it could be used with a file containing the logins and pass I want the
> user's entry to be compared to.
>
> So in more details the present situation is:
> - I have a file containing the logins and pass from some users
> - I have a perl CGI script looking if there is a certain cookie
>   - if the cookie is there I can display the web page
>   - if the cookie is not there I pop up a 401 and ask the user for login
> and pass
>
> And I want to get those login and pass the user enters and check them
> with the contents of my file. I read somewhere there was no way to get
> the password, but I am able to get it using php (with the
> $HTTP_AUTH_PASSW var). So I'm confused...
>
> Is there any nice location where I can learn more about this or a
> general solution (I would be pleased not to use a separate form to get
> the user's login and pass but I think I will do that while not finding a
> solution).
>
> Thanks all,
>
> Yannick
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to