PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Tuesday, September 13, 2022

[FIXED] How to access Cookies cross-device/cross-browser?

 September 13, 2022     cookies, cross-browser, cross-platform     No comments   

Issue

Lets say a user opens website with utm from a third-party ios app with webview - instagramm, facebook.

E.g. example.com?utm_source=facebook&utm_medium=banner&utm_campaign=advertisement1

Javascript on example.com creates a cookie with those campaign details. How can you see those campaign details if a user visits a website from a different device or browser?


Solution

It turned out cookies are saved locally, and cannot be accessed from another device, unless you save them to a database and assign to a user, when he makes an authorization.

So basically if you want to keep cookies cross-device/cross-browser for a user, you should sync them with your user data in database.



Answered By - Sam Tyurenkov
Answer Checked By - Marie Seifert (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing