How to force session_id in ASP.Net MVC -
i doing ajax calls (with jquery) browser.
notice session id not sent browser.
want pass session id parameter.
on server side, not know how tell asp.net "now, use value session_id".
in php, used that:
session_start($_post['my_session_id']);
i want same thing in asp.net
thanks
you want custom isessionidmanager.
the isessionidmanager interface identifies methods must implement create custom manager session-identifier values. isessionidmanager interface implementation creates , validates session-identifier values, , manages storage of session identifier in http response retrieval of session-identifier value http request.
[...]
if want supply custom session-identifier values used asp.net session state, can create class inherits sessionidmanager class , override createsessionid , validate methods own custom implementation. enables supply own session-identifier values, while relying on base sessionidmanager class store values http response , retrieve values http request.
Comments
Post a Comment