Thursday, April 21, 2011

ASP.NET MVC: Make Session entirely cookie-less (hidden form field)

Hello, is there some kind of standardized way which would allow me to make my ASP.NET MVC web app sessions entirely cookie*less*, but still keep session support through some standardized hidden form field value on every page (e.g. which would get parsed transparently on every request)?

P.S. I'm not looking for a URL based /(sessionid)/ solution. As stated above, this should preferably be via hidden form field.

From stackoverflow
  • A hidden form field would only work if every navigation element on your site is a button which submits the form. This would (among other things) make the back button and refresh awkward and make your site un-spiderable to search engines.

    Dykam : Or ajax based page retrieval.
    Rex M : @Dykam which is awful, and not what AJAX is for.

0 comments:

Post a Comment

Note: Only a member of this blog may post a comment.