Authentication on our environment:
1) authenticate using user/password which will translated as hash
value (unique value that will represent user session id) printed as
xml response.
2) keep trace of user login using login_id + hash value (session id
will be auto_increment primary key) into mySQL DB.
3) every time user want's to send change request, send this hash value
which will be checked against the login table.
4) Apache has a global variables in Perl (most likely in other
languages): $Request / $Response which have method "QueryString" that
retrieves the arguments sent in http request.

example:
1) http://mysite.com?cmd=authenticate&user=xxxx&pass=yyyy
2) http://mysite.com?cmd=doSomething&uid=secretHash


Best of luck
Chanan


On Sun, Apr 10, 2011 at 8:43 AM, Shlomit Afgin
<[email protected]> wrote:
>
>
> Hi,
>
> I want to build a script that only authenticate users can access.
>
> The authentication I want to use is Apache  authentication.
>
> During the script I need to know the exact person that login.
>
> Is there any environment variable that keep this information?
>
>
>
> Thanks,
>
> Shlomit.
>
> _______________________________________________
> Perl mailing list
> [email protected]
> http://mail.perl.org.il/mailman/listinfo/perl
>



-- 
===================
----     Chanan Berler    ----
===================
_______________________________________________
Perl mailing list
[email protected]
http://mail.perl.org.il/mailman/listinfo/perl

Reply via email to