This is a discussion on "Connection check (cookies)" within the PHP Forum section. This forum, and the thread "Connection check (cookies) are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Connection check (cookies)
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Connection check (cookies)
Hi all a newbie here.
I am currently updating my website and looking to create some extra features for my users. My site works on earning commission and the feature I wish to install is where a user can click on a box saying "test my connection". Using PHP it will check the computer to identify whether they are able to accept cookies and secondly whether Norton Anti Virus is blocking them. This will then return a pass/fail for each check it performs. This I feel is an important feature to my site as I require these features to receive the commission. My question is: How do I create this feature? I have seen it used on other sites but would appreciate a step by step or a place I can download the script etc.... Thanks for your help in advance. |
|
|
|
#2
|
|||
|
|||
|
Re: Connection check (cookies)
You aren't asking for people to give you their resources for free so that you can then charge others for yours are you?
Method: Send out a unique cookie with the initial page (have a look at the setcookie function in PHP), and check that the value that's entered is returned in the $_COOKIE array on the subsequent page. References: You'll find setcookie and $_COOKIE reference documention on the http://www.php.net site - that's a good starter for you if you're well up on PHP already and just need a bit of information about the extra functions. Last edited by grahame; Sep 13th, 2006 at 20:14. |
|
#3
|
|||
|
|||
|
Re: Connection check (cookies)
LOL
No I have no intention on selling information and the info you have provided is ore than enough to help me start, thank you. Does the same apply to see if norton settings are blocking cookies? or is that not cookie related? |
|
#4
|
|||
|
|||
|
Re: Connection check (cookies)
Quote:
As an afterthought, if the page that sends out the cookie also includes a unique "get" parameter - in effect a hidden input field - you'll be able to tell which user it is who's refused the cookie when the response comes in, rather than just have to give a generic "you don't accept cookies" response. |
![]() |
| Tags |
| connection, check, cookies |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| cookies in PHP | marquey | PHP Forum | 4 | May 31st, 2007 17:17 |
| ASP Cookies | señorbadger | Classic ASP | 6 | Nov 22nd, 2003 14:04 |
| Flash+cookies | icthecat | Flash & Multimedia Forum | 1 | Oct 31st, 2003 06:32 |
| Flash Cookies! | Webforumz Staff | Flash & Multimedia Forum | 0 | Sep 3rd, 2003 12:09 |