Asp.net 2.0 cookieless="usecookies" not working
-
Hello, i need some help please to solve this problem; i'm migrating to asp.net 2.0 and i'm having problems with session states more specific if i set the web.config sessionstate to cookieless="usecookies" sessionid is lost after every postback but if the cookieless is set to useuri it isn't. Is there any special setting that i need to change? I have tried with xp pro,w2003 with same result. Here is my web.config
<configuration> <appSettings/> <connectionStrings/> <system.web> <compilation debug="true"/> <authentication mode="Windows"/> <sessionState mode="InProc" cookieless ="UseCookies" timeout="30"></sessionState> </system.web> </configuration>
Regards. -- modified at 22:19 Saturday 11th March, 2006 -
Hello, i need some help please to solve this problem; i'm migrating to asp.net 2.0 and i'm having problems with session states more specific if i set the web.config sessionstate to cookieless="usecookies" sessionid is lost after every postback but if the cookieless is set to useuri it isn't. Is there any special setting that i need to change? I have tried with xp pro,w2003 with same result. Here is my web.config
<configuration> <appSettings/> <connectionStrings/> <system.web> <compilation debug="true"/> <authentication mode="Windows"/> <sessionState mode="InProc" cookieless ="UseCookies" timeout="30"></sessionState> </system.web> </configuration>
Regards. -- modified at 22:19 Saturday 11th March, 2006The cookieless attribute is a boolean, use either TRUE or FALSE
-
Hello, i need some help please to solve this problem; i'm migrating to asp.net 2.0 and i'm having problems with session states more specific if i set the web.config sessionstate to cookieless="usecookies" sessionid is lost after every postback but if the cookieless is set to useuri it isn't. Is there any special setting that i need to change? I have tried with xp pro,w2003 with same result. Here is my web.config
<configuration> <appSettings/> <connectionStrings/> <system.web> <compilation debug="true"/> <authentication mode="Windows"/> <sessionState mode="InProc" cookieless ="UseCookies" timeout="30"></sessionState> </system.web> </configuration>
Regards. -- modified at 22:19 Saturday 11th March, 2006Hi there, I guess you are using the ASP.NET development server instead of the IIS. In fact, there should be no problem with the IIS when you set the
cookieless
attribute tousecookies
. With the built-in server, you either set the atrribute touseuri
ortrue
to maintain the sessionid in the query string. -
The cookieless attribute is a boolean, use either TRUE or FALSE
-
Hello, i need some help please to solve this problem; i'm migrating to asp.net 2.0 and i'm having problems with session states more specific if i set the web.config sessionstate to cookieless="usecookies" sessionid is lost after every postback but if the cookieless is set to useuri it isn't. Is there any special setting that i need to change? I have tried with xp pro,w2003 with same result. Here is my web.config
<configuration> <appSettings/> <connectionStrings/> <system.web> <compilation debug="true"/> <authentication mode="Windows"/> <sessionState mode="InProc" cookieless ="UseCookies" timeout="30"></sessionState> </system.web> </configuration>
Regards. -- modified at 22:19 Saturday 11th March, 200610x i have found why i was having this problem, i found the answer here http://www.eggheadcafe.com/articles/20021016.asp[^] Q: Why does the SessionID changes in every request? A: This may happen if your application has never stored anything in the session state. In this case, a new session state (with a new ID) is created in every request, but is never saved because it contains nothing. Regards.