Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can two different browser share one cookie?

Tags:

cookies

share

My requirement is pretty interesting, I want to maintain one cookie between two different browser for same domain.

so lets say I have create one cookie with name "mydata" and value "hiscal" from IE, then if i browse same website from firefox and trying to read cookie "mydata" then system should give me value "hiscal"

but this is not happen in general case

so can any one tell me how i can share cookie between to different browser(client) of same domain.

Thanks, Hiscal

like image 496
Hiscal Avatar asked Jan 28 '10 10:01

Hiscal


2 Answers

You can build a cookie-proxy by creating a Flash application and use Shared Objects (SO = Flash cookies) to store data.

Any Browsers with Flash installed could retrieve the informations stored in the SO.

But, it's an ugly workaround.

Just don't share cookies... and find another way to build your website/app.

like image 111
Fro_oo Avatar answered Sep 23 '22 14:09

Fro_oo


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

With a lot of hard work you could in theory write an application that sits on the client computer that looks at all the locations the different browsers store cookies, parses the different cookie formats, synchronises them and then writes them out.

That would be error prone and will break as soon as a browser changes how it works with cookies (not to mention that some of the browsers secure their cookies, so you won't be able to get to them in the first place).

In my opinion, this is not practical and I wouldn't even try.

like image 30
Oded Avatar answered Sep 22 '22 14:09

Oded