Jump to content


Photo

Cookies enabled?


  • Please log in to reply
4 replies to this topic

#1 peffo

peffo
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 29 August 2006 - 12:17 PM

Hi everybody.

Been trying to find some code that verifies UA cookies enabled.

true - continue script
false - "You need cookies enabled" - end script.

Anyone?

P

#2 Orio

Orio
  • Staff Alumni
  • Advanced Member
  • 2,491 posts

Posted 29 August 2006 - 12:21 PM

Send the user a cookie, redirect him to another page (header(Location: ...)) and check if that cookie exists.

Orio.
Think you're smarty?

(Gone until 20 to November)

#3 Jenk

Jenk
  • Members
  • PipPipPip
  • Advanced Member
  • 778 posts

Posted 29 August 2006 - 12:22 PM

set a cookie value on page one, if it is present on page two - cookies are enabled.

#4 paul2463

paul2463
  • Members
  • PipPipPip
  • Advanced Member
  • 955 posts
  • LocationUK

Posted 29 August 2006 - 12:24 PM

Nothing to do with PHP.  No server side language can determine that
without attempting to setting a cookie then having the client do another
request.
you cannot affect the past but you can ruin a perfectly good present by worrying about the future

*********************************************************************
The <A HREF="http://www.php.net/d...php">MANUAL</A> is actually a useful resource

#5 peffo

peffo
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 29 August 2006 - 02:57 PM

Ok, thanks.

Same thing for session (PHPSESSID) i suppose?

P




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users