开发者

problem with aspx url

i m building website in asp.net when i run my pages i expect that my brower should display url like this http://www.fixpic.com/uploo.aspx

but instead of this it displays http://www.fixpic.com/(S(vqr0tz45005i2c450544ut45))/uploo.aspx

what could be t开发者_StackOverflowhe reasons behind it,,might be coz i m trying to make sessions but if that is the case than how can i remove these long characters from the url


you have set it to use the url for sessions (cookieless) so this is the sessionid, you will see a line similar to the one vbelow, if you want to set the seesion back to cookies just remove the cookieless=true

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


This is because url is used to track session id instead of cookies. This setting is normally configured in web.config by the sessionState element. If you use cookieless="true" it will use urls. Set it to false and cookies will be used.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜