PHP_AUTH_USER

From: Date: Tue, 12 Sep 2000 21:25:21 +0000
Subject: PHP_AUTH_USER
Groups: php.general 
Request: Send a blank email to php-general+get-16440@lists.php.net to get a copy of this message
I'm using some similar to below to authenticate users to a site: if(!isset($PHP_AUTH_USER)) { Header( "WWW-authenticate: basic realm=\"highlifter\""); Header( "HTTP/1.0 401 Unauthorized"); etc... Anyway, it's all working great. But I have an instance where I know what the users username and password is already. I would like them to be able to access the site, and pass the authentication on future requests durring that visit to the site. What I'm getting at, is there a way to simulate the browser authentication if I already have $username and $password Kevin -- -------------------------------------------------------------------- Kevin Heflin | ShreveNet, Inc. | Ph:318.222.2638 x103 VP/Production | 333 Texas St #175 | FAX:318.221.6612 kheflin@shreve.net | Shreveport, LA 71101 | http://www.shreve.net --------------------------------------------------------------------

« previous php.general (#16440) next »