Re: How reliable is the 'user' in http://user@somehost.com/???

From: Date: Wed, 09 Jan 2002 19:38:02 +0000
Subject: Re: How reliable is the 'user' in http://user@somehost.com/???
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-79947@lists.php.net to get a copy of this message
In looking into this more, while I can put stuff there, PHP doesn't pick it up (or perhaps the browser doesn't send it) unless you do something like this: if ( !isset($PHP_AUTH_USER) ) { Header("WWW-Authenticate: Basic realm=\"Foo\""); Header("HTTP/1.0 401 Unauthorized"); exit; } But in this case you have to supply both a user and password... Rats. -philip On Tue, 8 Jan 2002, Philip Hallstrom wrote: > Hi - > For one of my projects I need to pass around a bit of information > to all the pages. The information is the same throughout and is the same > for groups of clients. Right now I just pass it on the query string, but > it's getting cumbersome so I started looking into sessions and I see that > I can do the $SID thing on the query string... and for some reason that > reminded me that I've seen urls that look like this: > > http://user@somehost.com/somepath.html > > I've played around with it a little bit and it seems I can put whatever I > want in for 'user' and that I can change it and that it "sticks" around > for relative urls. And it's in RFC 1738, but it doesn't say too much. > > So my questions are these: > > - how reliable is that syntax for passing data around? > > - is there a reason PHP can't use that for storing $SID? > > Thanks! > > -philip > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#79947) next »