By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,751 Members | 1,175 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,751 IT Pros & Developers. It's quick & easy.

How to send cookie value back to server

P: 1
Hi

I'm gathering information from web page, first I get headers and store recieved cookies then I get source with file()-function.

Is there easy way to send cookie value back to host on each page, so my script would be recognized as web browser and sessid wouldn't change on every page ?
May 7 '07 #1
Share this Question
Share on Google+
3 Replies


Purple
Expert 100+
P: 404
Hi

I'm gathering information from web page, first I get headers and store recieved cookies then I get source with file()-function.

Is there easy way to send cookie value back to host on each page, so my script would be recognized as web browser and sessid wouldn't change on every page ?
Can you give some more detail on what you are trying to achieve - can you post some code to let us see where you are upto
May 8 '07 #2

pbmods
Expert 5K+
P: 5,821
Is there easy way to send cookie value back to host on each page, so my script would be recognized as web browser and sessid wouldn't change on every page ?
Are you calling session_start() at the beginning of each script?
May 8 '07 #3

Motoma
Expert 2.5K+
P: 3,235
There is the setcookie() function. But if it is just the session, you can always use session_id();

Hi

I'm gathering information from web page, first I get headers and store recieved cookies then I get source with file()-function.

Is there easy way to send cookie value back to host on each page, so my script would be recognized as web browser and sessid wouldn't change on every page ?
May 9 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.