Re: Authenticate user

From: Date: Fri, 21 Feb 2003 11:23:58 +0000
Subject: Re: Authenticate user
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-18651@lists.php.net to get a copy of this message
I'm really new at this authentification thing... What I want do to: 1- a user appears 2- he fills a form (easy) 3- gain access to the page (?) 4- no one else can log-on until the user who is logged quits (very important) (????) 5- inside the user can surf in diferent php files without being asked for new athentification (????) ----------------------------------- 3 - Trying to authentificate user the warnings bellow appear: Warning: Cannot send session cache limiter - headers already sent Warning: Cannot add header information - headers already sent by ( Line of the first Warning: // Main ---------- session_start(); Line of second warning: // Relocate back to the login page header("Location: index.php"); 5- How can a user surf in diferent pages with the same loggin? Thanks Rui Monteiro "Rui" <RuiSMonteiro@netcabo.pt> escreveu na mensagem news:20030220234758.53676.qmail@pb1.pair.com... > I'm trying to make a page that requires an authentification by the user. > > A lot of problems appear when I run a script copied from the "O'Reilly : Web > Database Applications". > > One of them is the function :clean: that doesn't exist, according with the > php compiler: > > session_start(); > > $authenticated = false; > > // Clean the data collected from the user > $appUsername = > clean($HTTP_POST_VARS["formUsername"], 10); > $appPassword = > clean($HTTP_POST_VARS["formPassword"], 15); > > Can someone tell me what is the prob? Where can I get information for this > kind of script? > > Thanks. > >

« previous php.windows (#18651) next »