开发者

Can a browser maintain multiple sessions with one server?

开发者 https://www.devze.com 2023-01-03 00:22 出处:网络
Is there a way to maintain multiple sessions with one server within the browser? Here is what I am trying to accomplish:

Is there a way to maintain multiple sessions with one server within the browser?

Here is what I am trying to accomplish: User1开发者_运维技巧 has exclusive access to ContentA and User2 has exclusive access to ContentB. I want to be able to allow User3 to login multiple times, to allow access to ContentA and ContentB.

I admit that this scenario seems almost silly but it stems from the fact that I can't change the way the server handles content permissions.

Any ideas on how I could accomplish this without touching the server? In say Safari on the iPhone?


It should be possible by setting different paths in the Cookies.

Set-Cookie: ... ; path=/path/to/contentA; domain=.example.com ...

and

Set-Cookie: ... ; path=/path/to/contentB; domain=.example.com ...

for the other content.

0

精彩评论

暂无评论...
验证码 换一张
取 消