REMOTE_USER set apo CGI script
Filippos Slavik
fsla at forthnet.gr
Thu Aug 31 11:29:24 EEST 2000
At 09:16 ðì 31/8/2000 +0100, Vasilis Vasaitis wrote:
>On Wed, Aug 30, 2000 at 09:18:39PM +0300, Bassoukos Tassos wrote:
> > On Wed, 30 Aug 2000, Constantinos A. Kotsokalis wrote:
> >
> > > Estw oti exoume CGI script pou kanei authentication kata ta
> > > gnwsta me formoules klp. Estw loipon oti 8eloume gia logous
> > > performance to script auto na kanei set th REMOTE_USER opws
> > > kanei kai to mod_auth meta apo authentication me PasswdFile
> > > kai ``require valid-user'' ston apache.
> > > Exei kaneis idea pws ginetai? Aplo setenv den doulevei,
> > > sto epomeno request exei xa8ei apo to environment.
> >
> > Ho hum...
> >
> > Prwtw dysaresto pragma gia to HTTP: einai state-less[0]. Ka8e fora 8a
> > prepei na kaneis authenticate ton xrhsth.
>
> ÂÝâáéá, áõôü äåí åßíáé ôüóï ôñáãéêü üóï áêïýãåôáé. ¸÷ù ôçí åíôýðùóç üôé ïé
>ðåñéóóüôåñïé browsers êÜíïõí Ýíá åßäïò caching üóï åßíáé áíïé÷ôïß. Ôï lounge
>ôïõ freshmeat ð.÷. äåí ìïõ æçôÜåé password êÜèå öïñÜ ðïõ áëëÜæù óåëßäá.
>
> > Tassos
> > [0] kai na mh milhsei kaneis gia cookies....
>
> Ç êáëýôåñç åíáëëáêôéêÞ ëýóç ðïõ Ý÷ù äåé åßíáé Ýíá session-id ðÜíù óôï URL.
>Äåí ôï Ý÷ù äïõëÝøåé ðïôÝ ãéá íá ðù åíôõðþóåéò, áëëÜ áò ôï Ý÷åé ï êáèÝíáò
>õðüøéí ôïõ...
Akribws, mias kai to HTTP einai stateless protocol h lysh erxetai me
session. Ta session synthiws ginontai me dyo tropous implemented.
[1] Cookies
[2] URL Rewritting
Fysika, panta h monh plhroforia pou metaferetai sto cookie ([1]) 'h panw
sto URL ([2]) einai to session id.. Ta data tou session einai stored localy.
Proswpika panta xrisimimopoiw to [2] giati einai poio standard kai
katafernw na kratw session kai gia browsers pou exoun kanei (gia kapoio
logo - yparxoun poly) disabled ta cookies.
Anyway, den exw idea pws tha ekana implemente session handling me
deinosaurikes lyseis opws CGI - protrepw tous endiaferomenous na koitaksoun
ligo ta Servlets :-)
Filika
Slavikos
PS: Sorry gia to "deinosaurikes", den thelw na prosbalw kanenan, apla
apexthanomai CGI scripts (eidika grammena se Perl)...
>--
>Vasilis Vasaitis
>vasaitv at visual.bt.co.uk
>
>
>--
>linux-greek-users mailing list -- http://lists.hellug.gr
################################################################
Filippos Slavik
Forthnet R&D, Hrakleio, Greece
e-mail : fsla at forthnet.gr
phone : (+3) 081 391230
################################################################
"The software said 'runs on Win95 or better,' so I installed it
on Linux..."
--
linux-greek-users mailing list -- http://lists.hellug.gr
More information about the Linux-greek-users
mailing list