in reply to rechecking the cookie

Check out the previous discussion on cookie check. The general pattern is:
  1. Try to set the cookie.
  2. Redirect to your current script, passing a parameter indicating that you have attempted to set the cookie.
  3. Have an if-then in your script watch for the presence of this parameter. If it's set and there is no cookie, then the client has cookies turned off.

Don't forget, though, that since clients can approve or disapprove of cookies individually, the fact that they allow one cookie to be set doesn't mean that they'll allow others.

stephen

Replies are listed 'Best First'.
Re: Re: rechecking the cookie
by sutch (Curate) on Mar 28, 2001 at 00:58 UTC
    stephen's words regarding individual approval/disapproval are true, so make sure that you test each cookie for acceptance. Better yet, limit cookies to one per user and maintain the required data (related to that cookie and user) on the back-end.