一个Cookie是否可以由登录同一设备的多个用户共享? [英] Can one cookie be shared by multiple users logged on to the same device?

查看:62
本文介绍了一个Cookie是否可以由登录同一设备的多个用户共享?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试设置一个Web应用程序,以便它根据用于打开该应用程序的设备来处理权限.例如,任何登录到设备A的用户都可以访问 www.example.com/Site/1 ,而所有登录到设备B的用户都可以访问 www.example.com/网站/2 .

I'm trying to set up a web application so that it handles permissions based on the device being used to open the application. For example, any users who logged on to Device A can access www.example.com/Site/1, and any users who logged on to Device B can access www.example.com/Site/2.

但是,所有用户都必须登录到设备,因此似乎需要为每个登录设备的用户创建cookie.

But, all users have to log on to the device, so it seems that the cookie needs to be created for each user who logged on a device.

只要多个用户登录到同一设备,是否甚至可以在多个用户之间共享cookie?我一直在搜索,但是找不到任何信息.

Is it even possible to share a cookie between multiple users as long as they are logged on to the same device?? I've been searching but I just can't find any information on this.

推荐答案

Cookie仅基于每个用户设置.如果不是这样,那将是一个重大的安全漏洞.

Cookies are set on a per-user basis only. If they were not, it would have been a major security breach.

因此,可以共享一个Cookie ..."问题的答案是 .

Therefore, the answer to the question "Can one cookie be shared..." is NO.

这篇关于一个Cookie是否可以由登录同一设备的多个用户共享?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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