Re: Authenticate user

From: Date: Fri, 21 Feb 2003 07:47:05 +0000
Subject: Re: Authenticate user
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-18646@lists.php.net to get a copy of this message
hi rui 1st of all y do u want to clean up user data collected ???? :S 2nd if u only want to authentify a user (logged into ur system/site) try this : // session check ! ! ! ! session_start(); if(!session_is_registered("name-of-session-u-registered-for-user" )) { header("Location: /root/error-file-name.php"); exit(); } hope i ve helped good luck toby ...... --- Rui <RuiSMonteiro@netcabo.pt> wrote: > 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. > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com

« previous php.windows (#18646) next »