Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are cookies persistent across different browsers? [duplicate]

Are cookies persistent across different browsers?

To elaborate on the question, let's say we have website that looks for an specific cookie on the user machine. If not found, it will create one. Suppose the user quits Chrome and go to the same website on Firefox, will the website locate the same cookie on the user's machine? Or will it create a new one for Firefox?

like image 801
Hank Liu Avatar asked Jul 06 '13 01:07

Hank Liu


People also ask

Are cookies the same across browsers?

The influence of cookies is limited to a single browser on a single device. You can't store the same cookie data on multiple devices. Cookies can't be read by multiple browsers. If you want to maintain state across multiple browsers or devices, then you've got to store state data on the server, not on the user's PC.

How are cookies persistent?

Persistent Cookies are stored on a user's device to help remember information, settings, preferences, or sign-on credentials that a user has previously saved. This helps create a convenient and faster website experience. These cookies have an expiration date issued to it by the webserver.

Can two browsers share one cookie?

Every browser maintains it's own cookies. So in general, no this is not possible.

Are cookies shared between devices?

Cookies are set on a per-user basis only. If they were not, it would have been a major security breach. Therefore, the answer to the question "Can one cookie be shared..." is NO.


1 Answers

No. Cookies are stored in browser-specific files.

like image 65
Barmar Avatar answered Sep 28 '22 07:09

Barmar