Click here to Skip to main content
15,889,116 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have to specify path for cookies for particular domain in c# So that cookies will be accessible to that application only. Tried out by giving Cookie.Path using Folder Name in application e.g.
/Try/ or /Try but it is creating ".AspxAuth" cookie but user is not able to login as Current.user is coming null. currently i am trying on localhost..

I am sure it is due to cookies path i am providing.

Please provide the solution in detail, for both localhost and for Live site e.g. www.abc.com
Posted
Updated 13-Mar-14 20:15pm
v3

1 solution

The ASPXAUTH cookie is used to determine if a user is authenticated.

So there might be a possibility that you're User is not authenticated, that is why you're getting it as a null.
So focus on that :)

-KR
 
Share this answer
 
Comments
pkmonga 14-Mar-14 2:11am    
I know my user is not authenticating but i think it is due to path i am giving to Cookies and domain..that is not going to authenticate the user.

So can you tell me how can i resolve the same issue.plz provide some solution.

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