Change SessionState in cookieless ASP.NET app as to drop session id redirect -
Our company uses an ASP.NET webapp, which I need to integrate with an external identifier. For this, authentication traffic redirects the handler in some cases, which refers to some external libraries for the interpretation of authentication requests from the identity provider.
Therefore, in cases where handler code should be used for communication with the identity provider, it is done in the Redirectional Global Application_BeginRequest, slightly like this:
The problem is that the position of the session is to capsize in the root web Is set as. Configure this way: This means that the redirects are themselves caught and re-scheduled with the session ID has been redirected. A request from the login.ashx handler is sent to the external identification provider on a URL, which authenticates and returns POST as a response to a very handler URL, meaning "session". Then, POST is redirected to GET, its form snatches the feedback from the data, so the authentication can not go forward, the request is again sent back to the identity provider in an inherent loop. Therefore, we have to stop the session session for the special controller. We have examined several options First of all, the EnableSessionState attribute, unfortunately, can not be used on handler page directives. Again, we tried to change the behavior of the session's session by catching and disabling the special URL and it is in Global.ASACX. Epalingic EngineerWest, similarly: It seemed to work at a level To do this, but not anymore, we are not sure why we have also tried to see whether "cookies" can be dynamically changed, but related fields can be changed only by- Appears to be readable. We have a separate web in the "auth" folder. Confessed and tried to set Kukkura right there, but he was not allowed. We can catch the reaction and see if what is being redirected to Application_EndRequest and wondering whether the redirection and session ID entry can be stopped for a particular URL, but we believe How is that not? Does anyone have any suggestions? We are running out of ideas ... We explained this by converting subfolders into question A virtual application in IIS and it's your web Tell the config, where the cuckoo can be closed. Feedback. Redirect (tempUrl & amp; "/ auth /" & Company name & amp; "/login.ashx")
& lt; SessionState mode = "InProc" [snip] cookieless = "true" />
HTTPCTEx.Content.SetestationStatebyvair (system web.SessionState.SessionStatebyWirelessDenate)
Comments
Post a Comment