How to send cookie value back to server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • korque
    New Member
    • May 2007
    • 1

    How to send cookie value back to server

    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 ?
  • Purple
    Recognized Expert Contributor
    • May 2007
    • 404

    #2
    Originally posted by korque
    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

    Comment

    • pbmods
      Recognized Expert Expert
      • Apr 2007
      • 5821

      #3
      Originally posted by korque
      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?

      Comment

      • Motoma
        Recognized Expert Specialist
        • Jan 2007
        • 3236

        #4
        There is the setcookie() function. But if it is just the session, you can always use session_id();

        Originally posted by korque
        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 ?

        Comment

        Working...