Re: Sessions and include()...

From: Date: Sat, 22 Sep 2001 04:25:14 +0000
Subject: Re: Sessions and include()...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-68276@lists.php.net to get a copy of this message
I believe: include() gets parsed and executed on the server that is doing the include-ing, not the remote server... If that file has session_xxx() in it, you'll have started a session and whatnot on the local server. The remote server doesn't even have to have PHP on it at all, and its configuration is irrelevant, other than allowing you to read some file that happens to have PHP source code in it... Which, by the way, is a very scarey concept unless you have complete security control over the remote server... -- WARNING richard@zend.com address is an endangered species -- Use ceo@l-i-e.com Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm ----- Original Message ----- From: Matthew Walker <matt@mountaintopherbs.com> Newsgroups: php.general To: <php-general@lists.php.net> Sent: Friday, September 21, 2001 11:48 AM Subject: Sessions and include()... > What happens if you use include() to include a file from another server, > and that file sets a session? Does the session get set for the domain of > the wrapper page, or does it get set for the domain of the included > page? > > -- > Matthew Walker > Ecommerce Project Manager > Mountain Top Herbs > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.281 / Virus Database: 149 - Release Date: 9/18/2001 > >

« previous php.general (#68276) next »