Forum Moderators: phranque

Message Too Old, No Replies

Apache accepting cookies (not sending)

apache and cookies

         

chuckmo

6:18 pm on Apr 20, 2005 (gmt 0)

10+ Year Member



I'm running a php script that i'd like to use to login into a website (which works fine by just using an HTTP request)

The problem is that once i've logged in, i don't remained logged in because "my browser [apache] doesn't accept cookies."

Is there anyway around this?

thanks!

jdMorgan

6:30 pm on Apr 20, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



chuckmo,

You must read the cookie sent in the response from the other server, and then send it in the request header of each subsequent request you make to that server. (I don't know the details of how you'd do this with your script, but that's what needs to be done.)

Jim

chuckmo

7:00 pm on Apr 20, 2005 (gmt 0)

10+ Year Member



this probably belongs in a different thread, but is there any way to read the headers through php?

chuckmo

7:04 pm on Apr 20, 2005 (gmt 0)

10+ Year Member



oh i had an idea... perhaps i can read the contents of the cookie that the site puts on my computer and then send that cookie in the header when i request the page.