Re: php .htaccess autologin
| From: | Evan Nemerson | Date: | Thu, 11 Dec 2003 18:23:22 +0000 |
| Subject: | Re: php .htaccess autologin | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-172526@lists.php.net to get a copy of this message | ||
On Thursday 11 December 2003 04:17 pm, ROBERT MCPEAK wrote:
> I've dug around quite a bit and can't figure out how I might use PHP to
> handle an .htaccess login. For example, if I wanted a script to log in the
> user, rather than the user logging in with the standard .htaccess dialog.
>
> Any ideas?
I could be wrong, but I think this would be rather client-dependent. I don't
think HTTP remembers who you throughout a session- i think the headers get
sent every time. My only idea from PHP would be to set the
$_SERVER['PHP_AUTH_*'] stuff, but i sincerely doubt that would do anything. I
just don't think there's a way to ask the browser to set that info through
http. Maybe ask @ javascript forum?
If you find a solution, I'd love to hear it...
>
> Since the .htaccess vars are stored in the browser, should I be looking at
> a PHP/JavaScritpt 1-2 punch?
>
> Thanks,
>
> Bob
--
Evan Nemerson
evan@coeus-group.com
http://coeusgroup.com/en
--
"First they came for the Communists, and I didn't speak up, because I wasn't a
Communist. Then they came for the Jews, and I didn't speak up, because I
wasn't a Jew. Then they came for the Catholics, and I didn't speak up,
because I was a Protestant. Then they came for me, and by that time there was
no one left to speak up for me."
-Martin Niemoller