Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can php accept remote cookies?

Status
Not open for further replies.

davemarsh

Technical User
Feb 11, 2003
12
IN
hi - is the a way for php to accept a remote server cookie, or a way around it?

what i'm tyring to do, is send a string to a remote page that won't allow you to post to it unless you have a session cookie already set by it.

eg :

<?
$f=fopen(&quot;fclose($f);
?>

... wouldn't work, because php can't hold the session cookie.

any ideas? - cheers.
 
oh and in 'page-to-post-to.asp' the code would be something like this:

<%
response.cookies(&quot;sesh&quot;)=&quot;blah&quot;
%>

<%
if request.cookies(&quot;sesh&quot;)<>&quot;&quot; then
response.write request.querystring(&quot;str&quot;)
else
response.write &quot;can't post.. no cookie found&quot;
end if
%>

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top