Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET4.0
I am new to ASP.NET and I just created an ASP.NET application that requires user login. I am using Form based authentication that is cookieless. This stores the cookie in the URL rather than storing it on the client machine. But in any way it requires that cookies be accepted by browsers. And it doesn't work if browser doesn't accept cookies. I was wondering if there is a way I could get away with cookies all together and still be able to use Form Authentication. And also I don't want to use/store user information in query string either.
Posted 5-Feb-13 21:20pm
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Hi !!! here you can find your answer.
 
http://www.dotnetfunda.com/articles/article141.aspx[^]
  Permalink  
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

When you use forms authetication, an authentication token is required to identify the returning user so that his session information can be provided to him.
 
If we use cookies then this information will be put in form of cookie in the users browser. If we use cookieless then this information will be stored in the Users URL. I am not aware of any third behavior.
 
When we use cookieless i.e. when this information is stored in the URL the cookies are not required to be enabled on client side. So even the users with disabled cookies will be able to access session information.
 
Please refer to these 2 articles for more details on forms authentication and sessions.
 
Understanding Session Management Techniques in ASP.NET[^]
Understanding and Implementing ASP.NET Custom Forms Authentication[^]
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web04 | 2.8.1411022.1 | Last Updated 6 Feb 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100