Welcome Guest, Not a member yet? Register   Sign In
Using cookie to track users
#6

(This post was last modified: 12-11-2015, 03:03 PM by cartalot.)

there are two ways to track someone while they are going to page to page. You can write some kind of ID to their cookie, and then retrieve that ID on the next page load. You can then use that ID to retrieve and write information to a database table such as what page they just went to. This does rely on cookies working on the visitors web browser. You can write / read the ID directly to / from the cookie, but using codeigniter 'sessions' gives you much more functionality. any information written to a cookie is unique to the visitor, but its not private - its part of the http headers that are sent by the browser.

The other way to track page to page is to create an ID, but instead of writing it to the cookie, you pass it in a hidden form field or added to the URL string. then when the person goes to the next page, you get the ID, retrieve and write the info, etc etc.
Reply


Messages In This Thread
Using cookie to track users - by Hamed - 12-10-2015, 12:12 AM
RE: Using cookie to track users - by solidcodes - 12-10-2015, 12:52 AM
RE: Using cookie to track users - by Hamed - 12-10-2015, 05:35 AM
RE: Using cookie to track users - by Diederik - 12-10-2015, 05:40 AM
RE: Using cookie to track users - by solidcodes - 12-11-2015, 03:01 PM
RE: Using cookie to track users - by Hamed - 12-11-2015, 08:57 AM
RE: Using cookie to track users - by cartalot - 12-11-2015, 12:53 PM
RE: Using cookie to track users - by scion - 12-13-2015, 05:29 AM
RE: Using cookie to track users - by Hamed - 12-18-2015, 12:44 PM
RE: Using cookie to track users - by Hamed - 12-20-2015, 08:09 AM
RE: Using cookie to track users - by Diederik - 12-20-2015, 12:20 PM



Theme © iAndrew 2016 - Forum software by © MyBB