Switch dynamically to cookieless session state asp.net?
-
05-06-2021 - |
Question
We have a requirement in which we need to switch dynamically to cookieless session.The following msdn link shows that we can enable cookiless sessions by modifying webconfig http://msdn.microsoft.com/en-us/library/aa479314.aspx ,Is there exist any method to switch dynamically to cookieless session?Any help would be appreciated.. Thanks
Solution
I don't believe there is. Typically, you would just check to see if they have cookies enabled by using Session.IsCookieless and if not redirect them to a page informing them that cookies are required. Check out this link for more info:
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow