SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
Thread: Strange cookie problem
-
Apr 4, 2008, 13:15 #1
- Join Date
- May 2006
- Posts
- 20
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Strange cookie problem
On a server I have access to I can successfully set a cookie using PHP however when trying to read the cookie back, the server plays dumb and acts like there is no cookie. I have tested my code (very basic) on two other servers and it works as expected. While I have access to this server with the problem I didn't configure it nor am I the administrator although I can see the Apache and PHP configuration files. Is there any way a firewall (non-personal) could block the cookies from being read by the server? I've tried my test code using Firefox, IE and Opera on windows, and Firefox on Linux and its the same every time. Any thoughts?
-
Apr 4, 2008, 18:18 #2
- Join Date
- Feb 2002
- Location
- Auckland
- Posts
- 14,692
- Mentioned
- 20 Post(s)
- Tagged
- 3 Thread(s)
sm20,
Cookies are sent with the header information - automatically.
May I assUme that you are using the same browser? May I assUme that your browser is set to allow cookies to be sent to ANY server?
No, a firewall will allow cookies to go through with the other headers. IMHO, it's your browser's cookie settings which is blocking your OTHER server from reading the cookies which are likely set to be sent ONLY to the original (setting) domain.
Regards,
DKDavid K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
Client and (unpaid) WHB Ambassador
mod_rewrite Tutorial Article (setup, config, test & write
mod_rewrite regex w/sample code) and Code Generator
-
Apr 4, 2008, 18:28 #3
- Join Date
- May 2006
- Posts
- 20
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Bookmarks