Help - Search - Members - Calendar
Full Version: Cookies in PhP?HOW TO?
MSFN Forums > Coding, Scripting and Servers > Web Development (HTML, Java, PHP, ASP, XML, etc.)

   
Google Internet Forums Unattended CD/DVD Guide
YoussefGamil
I have used "setcookie()" and "$_COOKIE();"..
But, It doesn't work except in the same page where the cookie was made.

So,How to make a cookie and how to read it by another page?
PLZ help
egrath
Hi,

is the page which tries to access the cookie on the same domain as the one who sat up the cookie?

Egon
YoussefGamil
Yes,..It's on the same domain

The Problem is soulved now!!!
by using "$HTTP_SERVER_VARS['cookie'];" insead of "$_COOKIE['cookie'];".

But, why "$_COOKIE['cookie']" didn't work?!! Nevermind
Google Internet Forums Unattended CD/DVD Guide
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.