Results 1 to 1 of 1
-
14th Dec 2010, 08:34 AM #1OPBannedWebsite's:
google.comcookie check code please help
hi
i found a code of cookies checking enabled or not ,but it is only for main page not for posts can u please help me , so that it also work for single posts thanx
here is code
Code:<?php function cookies_enabled() { $cookie_sent = setcookie('tc','ok',time()+3600); if($cookie_sent == false){die('Test cookie not sent');} $redirected = (isset($_GET['cs']) && $_GET['cs'] == '1' ? $_GET['cs'] : '0'); if($redirected == '0') { header('Location: '.$_SERVER['PHP_SELF'].'?cs=1');return;//or should I put exit() ? } return (isset($_COOKIE['tc']) && strcmp($_COOKIE['tc'],'ok') === 0); } if(cookies_enabled())echo 'Cookies ON'; else echo 'Cookies OFF'; ?>
pioneer_fawad Reviewed by pioneer_fawad on . cookie check code please help hi i found a code of cookies checking enabled or not ,but it is only for main page not for posts can u please help me , so that it also work for single posts thanx here is code <?php function cookies_enabled() { Rating: 5
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Need Help In cookie
By saninokia in forum Web Development AreaReplies: 0Last Post: 21st Feb 2012, 04:10 PM -
Can anyone check this code pls
By Mr.Mirchi in forum Web Development AreaReplies: 2Last Post: 7th Feb 2012, 05:23 PM -
How to add cookie in rapidleech
By djakil in forum Webmaster DiscussionReplies: 5Last Post: 14th Jan 2011, 05:00 AM -
Fix the cookie problem in vB
By Royal King in forum Tutorials and GuidesReplies: 5Last Post: 7th Feb 2010, 02:28 PM -
C is for cookie, and that's good enough for me
By Sp32 in forum General DiscussionReplies: 4Last Post: 18th Jan 2010, 05:14 AM
themaCreator - create posts from...
Version 3.37 released. Open older version (or...