soumavachakraborty / gaforflash

Automatically exported from code.google.com/p/gaforflash
Apache License 2.0
0 stars 0 forks source link

linker and cookie #13

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
from js the linked cookie were handdled in _handleCookie in the Tracker
but as we have a different initialization logic for the cookies
(SharedObject) in flash it could be better to handle also the linked cookie
in the buffer directly

that way the logic could be:
1. initialize buffer
2. read query string
   a. link cookie if found
3. read user local shared object if found
   (ignored if linked cookie found as linked cookie take precedence)
4. create a fresh cookie (in shared object)
   (if no linked or already existing cookie found)

Original issue reported on code.google.com by zwetan on 24 Nov 2008 at 7:30

GoogleCodeExporter commented 8 years ago
Logic makes sense to :
1. Initialize Buffer
2. If allowLinker = true, 
2.1 If linker params in query string exist, override/create new cookie
2.2 If linker params in query string do not exist, go to #3

3. If allowLinker != true (default) 
3.1 If cookie exist, read local storage into buffer
3.2 If no cookies exist, create new cookie

Original comment by zwetan on 24 Nov 2008 at 7:31