¡@

Home 

2014/10/16 ¤W¤È 12:02:40

jquery Programming Glossary: cookieless

Getting ASP.NET Cookieless Sessions and JQuery AJAX to play together nicely

http://stackoverflow.com/questions/869268/getting-asp-net-cookieless-sessions-and-jquery-ajax-to-play-together-nicely

AJAX. With this JQuery code .post ajax getsomedata.aspx 'id' id function data dosomething data When I run this with cookieless false id shows up in Request.Form . When I set cookieless true id is no longer in Request.Form . UPDATE What I did I added.. id function data dosomething data When I run this with cookieless false id shows up in Request.Form . When I set cookieless true id is no longer in Request.Form . UPDATE What I did I added a call to Response.ApplyAppPathModifier to preserve the.. id function data dosomething data According to MSDN Response.ApplyAppPathModifier adds the session id if you are in cookieless session state and returns the unaltered URL if you are not. Since there is no session id ASP.NET creates a new session and..