Re: Again with sessions

From: Date: Fri, 29 Jul 2005 23:19:33 +0000
Subject: Re: Again with sessions
References: 1  Groups: php.general.es 
Request: Send a blank email to general-es+get-55497@lists.php.net to get a copy of this message
Yo no se si es que estoy mamado o que, pero porque carajo escribi en Ingles ? No pregunten que ni yo se. Disculpen la traba cerebral. Lorenzo Cuturi Baccini. ""Lorenzo"" <siskhoalanka@adinet.com.uy> escribió en el mensaje news:DC.B4.04646.D26BAE24@pb1.pair.com... > Hi, now at least I' ve made work some sessions :) > I want to know how is the logic for a basic login. > I' ve made: (dunno if it' s ok) > > Index.php > db_conncet.php > Auth.php > > Index draws the textfields and passes it to Auth.php which opens a session > with username and userlevel(taken from the db after seeking the user) > > Now I have one logical problem I think, how can I do to know if the user > has a registered session before drawing the login textfields ? > > Because I can' t put: if (!session_is_registered($username)) First because > it' s empty and second because I have to be able to do this check without > asking the user to reenter his username just to see if he has a session. > > How would you design a basic login like this ? > > Sorry for my english, I hope that at least it is understandable, I think I > just invented a word :) > > Thanks !! > > Lorenzo Cuturi Baccini.

« previous php.general.es (#55497) next »