Check if cookies are enabled on one page

From: Date: Sun, 20 Jun 2004 16:43:17 +0000
Subject: Check if cookies are enabled on one page
Groups: php.general 
Request: Send a blank email to php-general+get-188731@lists.php.net to get a copy of this message
Hello! I don't want to alyways set a cookie when a user enters my page. I want to set it when the users logs on, not earlier. The way is: - "Login-Page": The user enters the page where he can enter his name/password in a form and then submits this form. Before this, no cookie should be set. - "After Login-Page":
    Here the cookie is set for the first time.
    - If the user has enabled cookies, I want to show him his data.
    - If the user has disabled cookies, I want to show him a page
      saying that he should enable cookies.
I saw pages doing so, but how is it done? I seem not to be able to set and check a cookie on the same page (or am I wrong?) Martin

« previous php.general (#188731) next »