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 [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
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 <[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
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
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]