Connection check (cookies)

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.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Sep 13th, 2006, 17:29
New Member
Join Date: Sep 2006
Location: Leicester
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Sep 13th, 2006, 18:53
Reputable Member
Join Date: Jul 2005
Location: Melksham, Wilts, UK
Posts: 293
Thanks: 0
Thanked 0 Times in 0 Posts
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? Cheeky!

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Sep 13th, 2006, 20:46
New Member
Join Date: Sep 2006
Location: Leicester
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Sep 14th, 2006, 05:57
Reputable Member
Join Date: Jul 2005
Location: Melksham, Wilts, UK
Posts: 293
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Connection check (cookies)

Quote:
Originally Posted by SDUK View Post
Does the same apply to see if norton settings are blocking cookies? or is that not cookie related?
You'll receive back the cookie if it isn't being blocked, and you will NOT get it back if it's being blocked for any reason - Norton, user's prefeneces or choice, or if you're being trawled by a search engine.

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
connection, check, cookies

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 15:47.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42