两个不同的浏览器可以共享一个cookie吗? [英] Can two different browser share one cookie?

查看:2947
本文介绍了两个不同的浏览器可以共享一个cookie吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的要求很有趣,我想为两个不同的浏览器之间保持一个cookie为同一个域。

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

所以让我说,我创建一个cookie名为mydata 和值hiscal从IE,那么如果我从firefox浏览相同的网站,并尝试读取cookiemydata,那么系统应该给我值hiscal

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

所以任何人都可以告诉我如何可以共享cookie到不同的浏览器(客户端)之间的同一个域。

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

感谢您,
Hiscal

Thanks, Hiscal

推荐答案

Flash应用程序并使用共享对象(SO = Flash cookie)存储数据。

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

任何安装了Flash的浏览器都可以检索存储在SO中的信息。

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

但是,这是一个丑陋的解决方法。

But, it's an ugly workaround.

只是不要共享cookie ...并找到另一种方式来构建您的网站/ app。

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

这篇关于两个不同的浏览器可以共享一个cookie吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆