Click here to Skip to main content
15,922,427 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
C#
Is it possible that form authentication can work in asp.net without cookies? I have learnt some where that without cookies authentication work normally but with help of token in query string but when I am disabling cookies my form authentication is failing with message in browser "This page was prevented from setting cookies"

Do I need to make some configuration changes to make it work with help of query string token?

What I have tried:

Form authentication work normally after enabling cookies.
Posted
Updated 22-Oct-16 17:07pm

While we don't know your code as you haven't shared yet but, you may like to start by reading some good articles on this and try to do the changes as described in following articles-
Understand How the ASP.NET Cookieless Feature Works[^]
How to get Cookieless FormsAuthentication to work with self-issued FormsAuthenticationTickets and custom UserData - Scott Hanselman[^]

If you still face any problem, please share the relevant code and let us if we can help you further.

Hope, it helps :)
 
Share this answer
 
Yes you need configuration setting. Refer - How to get Cookieless FormsAuthentication to work with self-issued FormsAuthenticationTickets and custom UserData - Scott Hanselman[^].
Quote:
XML
<sessionstate cookieless="true"></sessionstate>
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900