ServiceStack might create several sessions instead of one on concurrent requests from one browser -


Supports service stack sessions.

Does the servicestack use some other mechanism, except cookies, to reliably identify the browser?

We believe this scenario: I open a browser with multiple tabs (previously saved) and the browser does not have any session related cookies (SS-PD etc.). All tabs go to simultaneously servers and server (service stack) can create multiple sessions instead of one.

The scenario may look artificial, but I'm surprised that the service stacks "fix"

< P> No, scenario with concurrent requests from non-identifying browsers There are ss-id and ss-pid cookies to identify user sessions in which session identifiers , which essentially only continue An example of how to match or request anonymous requests for the same user session for ServiceStack, without the session ID (contained in cookies) in the registered code at the place entered in the session in the ID in the ICacheClient there's no way.

But cookies are sticky to nature, that means when you open more than one tab, then the browser automatically resets the same cookie that is registered for that domain.

If multiple anonymous (i.e. no cookies are set) tabs are open and one of these requests is made, the service stack will be detected that no cookie was sent and generated automatically and the customer should get the new < Code> ss-id , ss-pid Cookies from any existing tab in that future, any future HTTP request (InfoAge Request) is the same Cookies will be included. Therefore, when one of the tabs is proven, all future requests from any tab send requests within the same authenticated session.

Using the HTTP header for session requests

v4.0.32 + , session ID can also be sent using an HTTP header such as: < Code> X-S-id , X-S-PD .


Comments

Popular posts from this blog

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -