note 42578 deleted from function.file-get-contents by nlopess

From: Date: Sat, 22 May 2004 08:20:48 +0000
Subject: note 42578 deleted from function.file-get-contents by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-69943@lists.php.net to get a copy of this message
Note Submitter: xangelusx@hotmail.com ---- Note that when using this function (or readfile(), et. al.) to read in the contents of a URL, the request is sent with a new session ID. This could be a problem when reading from pages that are protected using a session-based login system. For example, I ran into this problem when trying to read from an ASP page, which triggered the Session_OnStart subroutine in the global.asa file, which then called a login function, which then returned a login form instead of the value that I was looking for. I ended up writing an IF clause that would circumvent the login function if the value of the SCRIPT_NAME server variable matched the ASP page I was calling from PHP.

« previous php.notes (#69943) next »