peffo Posted August 29, 2006 Share Posted August 29, 2006 Hi everybody.Been trying to find some code that verifies UA cookies enabled.true - continue scriptfalse - "You need cookies enabled" - end script.Anyone?P Link to comment https://forums.phpfreaks.com/topic/19005-cookies-enabled/ Share on other sites More sharing options...
Orio Posted August 29, 2006 Share Posted August 29, 2006 Send the user a cookie, redirect him to another page (header(Location: ...)) and check if that cookie exists.Orio. Link to comment https://forums.phpfreaks.com/topic/19005-cookies-enabled/#findComment-82134 Share on other sites More sharing options...
Jenk Posted August 29, 2006 Share Posted August 29, 2006 set a cookie value on page one, if it is present on page two - cookies are enabled. Link to comment https://forums.phpfreaks.com/topic/19005-cookies-enabled/#findComment-82135 Share on other sites More sharing options...
paul2463 Posted August 29, 2006 Share Posted August 29, 2006 Nothing to do with PHP. No server side language can determine thatwithout attempting to setting a cookie then having the client do anotherrequest. Link to comment https://forums.phpfreaks.com/topic/19005-cookies-enabled/#findComment-82137 Share on other sites More sharing options...
peffo Posted August 29, 2006 Author Share Posted August 29, 2006 Ok, thanks.Same thing for session (PHPSESSID) i suppose?P Link to comment https://forums.phpfreaks.com/topic/19005-cookies-enabled/#findComment-82245 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.