Click here to Skip to main content
15,891,513 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
If I add the following code to my web config in the System.Web section. I get a 403 error when trying to connect. Any thoughts?

<sessionState mode="InProc"
   cookieless="true"
   timeout="120"/>


If I remove mode and cookieless flag the site comes up.

What I have tried:

taking it out, searching the web, etc...
Posted
Updated 14-Jan-20 22:57pm
v2

1 solution

If in doubt, look at the error message. A quick google tells you what you need to know:
403 error - Google Search[^]
Error 403 Means "Forbidden" - you don't have permission to access some resource on that page, or the page itself.
At a guess, it's in a folder that requires a user to log in with a specific role, but since we don't have any access to your codebase we can't tell.
Compare that page with a working page (probably in a different folder) and compare the web.config files to see if there is any security info in them.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900