2

I am developing website using Asp.Net 4.5 (VS2012) and using Telerik Ajax controls. I am using Telerik Schedular, Grid, AjaxPanel etc.

Project compiles fine. When I run it from VS.. It is showing me URL like this

http://localhost:23482/default.aspx

and then suddenly some random string inserted between URL. and it looks little wired like below

"http://localhost:23482/(S(hchi1ir5xii2dy1cjgpghqx3))/default.aspx"

"http://localhost:23482/(S(mgxsfl3rnxnbx2y24i12nowe))/default.aspx"

"http://localhost:23482/(S(sc2hyowh0f2xidnx1zptgaqd))/default.aspx"

I've also tried to run it from IIS as website. no luck.. same problem.

NOTE: The website still works fine even with random strings in URL nothing is broken at all.

Can anyone please suggest me something ?|

Thanks

2 Answers 2

9

Seems like you are using cookieless session

See this

Sign up to request clarification or add additional context in comments.

5 Comments

Yes, You're right! Thank you. +1 This is fastest answer I've ever got on Stackoverflow.
@HiteshRiziya you keep count of time for answers and give them awards?? :)
btw, do you know, Does that make any difference if we use cookieLess session with Telerik ?
@HiteshRiziya, I don't think so, it shouldn't make any difference to use CookieLess session with Telerik, However I haven't done that.
<sessionState cookieless="true" />
3

SessionId by default is store in cookies but you can use cookieless session by writting this lines to web.config

  <system.web>
    <sessionState cookieless="true"
         />
     </system.web>

you can remove that lines from webconfig to remove (S(hchi1ir5xii2dy1cjgpghqx3))

from

"http://localhost:23482/(S(hchi1ir5xii2dy1cjgpghqx3))/default.aspx"

or write to web.config

<system.web>
    <sessionState cookieless="false"
          />
  </system.web>

3 Comments

This is still showing me sessionid in URL. EDIT: oh ok. I just set cookieless="False" and it worked!
write <sessionState cookieless="false" regenerateExpiredSessionId="true" /> in web.config
Yeah. After making cookieless="false". problem gone. Is there any need to write regenerateExpiredSessionId="true" ?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.