Jump to content

multiple cookies


serial

Recommended Posts

should i do it like:

 

<?php

setcookie("ChallUID=840");

setcookie("ChallUNAME-serial_2k");

setcookie("POSTNUKESID=blah");

 

        $url = "http://www.something.com";

 

        $page = file_get_contents($url");

 

        echo $page;

 

?>

 

when i do this it says access dnied need to set the cookies

 

Link to comment
https://forums.phpfreaks.com/topic/42183-multiple-cookies/#findComment-204622
Share on other sites

ok what i have to do is set the cookies to view certain information on a page then get the information on the page and then send it back. I can get the information on the page without cookies using the header(); function but can't get a certain line of text which i need to get so im using file_get_contents() but it the page reads

 

You broke the cookie that was set on your system. Access denied to this service

 

because the cookies arnt setting

Link to comment
https://forums.phpfreaks.com/topic/42183-multiple-cookies/#findComment-204626
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.