Difference between revisions of "Cookies"

From WHMCS Documentation

(Created page with 'Cookies are small text files stored by your device when you access most websites on the internet. And WHMCS is no exception. There are two types of cookie: *'''Session cookies'…')
(No difference)

Revision as of 01:05, 8 June 2012

Cookies are small text files stored by your device when you access most websites on the internet. And WHMCS is no exception. There are two types of cookie:

  • Session cookies - these expire when you close your browser and do not remain on your computer.
  • Persistent cookies - these are stored long term on your computer for a period specified in the code.

Below is an explanation of all the cookies created by the WHMCS client area, which type they are, and what purpose each serves.

  • PHPSESSID - Probably the most common cookie that most PHP based websites will use. This is used to store the unique session ID for each visitor and enables variables to be remembered and passed between page loads. This is a session only cookie so expires as soon as the browser is closed.
  • WHMCSAffiliateID - This cookie gets set when a customer is referred to you via an affiliate. It simply stores the ID of the affiliate that referred them, so that if an order is placed within the next 90 days following the referral, the affiliate gets credited for it. It is a persistent cookie.
  • WHMCSLinkID - This cookie gets set only if you use the link tracking feature of WHMCS (Utilities > Link Tracking). It remembers the link the visitor followed to first get to your website, and is then used when an order is placed to be able to associate the conversion with a link to be able to provide stats on the effectiveness of your links. It is a persistent cookie.
  • WHMCSUID/WHMCSPW - These 2 cookies are used for the remember me functionality of the client area. They only get set should a client choose to have their details remembered so they don't have to re-login every time they visit your website. They are persistant and last for 365 days, or until logout.