track a visitor with cookies php
the scenario would be the following: a user is landing to my website and is getting a cookie and together with other parameters(referrer, page_id,ip,landing time etc) should be saved to database. If the same visitor is accessing another page what is different than the landing page all this informations should be updated.
What could be those php functions what would let me to handle in an elegant way this task?
track a visitor with cookies php
===

the scenario would be the following: a user is landing to my website and is getting a cookie and together with other parameters(referrer, page_id,ip,landing time etc) should be saved to database. If the same visitor is accessing another page what is different than the landing page all this informations should be updated.
What could be those php functions what would let me to handle in an elegant way this task?