Hi Nikola,
If you're talking about the situation where a pop-up box appears requesting
username and password, this is usually nothing to do with perl or any other
cgi script - try looking for some info on '.htaccess' ( I haven't got any
good links on that, off hand).
The situation where you are confronted with a page containing a form to fill
in is, however, run by a cgi-script (often perl). It will appear when the
user clicks on a link to restricted info. What the user has really done, in
this case, is click on a link to the cgi-script. It generates the login page
and checks the user:pass data against a list of valid values (usually kept
in a separate file). It then proceeds according to whatever it has been
programmed to do.
With this method you cannot protect static pages ( with .htaccess you can ).
Everything the browser displays during such a session is generated by the
cgi script. Often, to avoid having the user be confronted with the login
form at every click, the script sets a cookie when the user successfully
logs in and , at every click, checks for the cookie. If the cookie is
present, the script generates the page the user wants to see - otherwise it
generates the login form.
That's the basics of most of 'em.
Cheers,
Rob
Visit our website at http://www.kalinabears.com.au
----- Original Message -----
From: Nikola Knezevic <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, January 28, 2001 1:39 AM
Subject: [OT] autentification
> Hi,
> I'm interested how is the user-autentification done on the sites??
> TM: Per(l:))son A opens the page www.someserver.com/index.html and sees a
> form with NAME and PASSWORD fields. Than that person fills the form and
> submits it. If he/she is permited to enter the site, than he/she is
> redirected to some other page. Otherwise, he/she again looks at the form.
>
> How is it done? In perl, any other language, directly with permisions on
> server????? How?
>
> Can someone point me to the right direction (addresses, sites or
> similar)???
>
> TIA.
>
> --
> ... Probao sam "Sezame otvori se" i nista. Zamenili su sifru.
>
> - --- -- ---=- --==---===-[Nikola Knezevic]---===--------+
> +- -=- -==--=- -=-- --- -- - http://users.hemo.net/indy --- -- -
>
>
> _______________________________________________
> Perl-Win32-Users mailing list
> [EMAIL PROTECTED]
> http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users
_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users