That is one way to try it but I haven't been able to get it to work.
Questions about PHP variable authentication through .htaccess protected
directories has been brought up many times since I've been on this list
but has never been completly answered. Apparently it cannot be done. The
closest thing you can do is create a .htaccess type pop up with PHP but
the username and password still have to be entered via the user which is
what I take to be what you are trying to avoid.

Ed Curtis


On Tue, 1 Jul 2003, Dave Carrera wrote:

> I have a issue with basic auth which I hope someone here can throw some
> light on.
> 
> 1) I have already got my SESSION auth working well
> 
> 2) Once someone logs in I need to send some basic auth info to a dir on
> another server to let my logged in user to view it. This is where I am stuck
> :-(
> 
> I think one answer is 
> 
> <?
>  If(isset($_SESSION[userokcode])){
> 
>   header(Location http://username:[EMAIL PROTECTED]://www.domain.name/dir);
> }
> ?>
> 
> Is that anyway close or have I got it the wrong way around?
> 
> Any help is appreciated.
> 
> Dave C
>  
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.493 / Virus Database: 292 - Release Date: 25/06/2003
>  
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to