Can a browser maintain multiple sessions with one server?
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.
精彩评论