Click here to Skip to main content
15,878,231 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
This will create new cookie :
// Set a cookie with a virtual path
HttpCookie myCookie = new HttpCookie("MyCookie");
myCookie.Value = "CookieValue";
myCookie.Path = "/virtualpath";
Response.Cookies.Add(myCookie);



In my application already the asp.net session ID is generating when I used <sessionstate> in web.config.

now I want to modified the path for the same:
ASP.net_SessionId path should be root/login.aspx
.ASPXAUTH path should be root/login.aspx

here root will be my virtual directory
and please let me know did I need to make any root folder or I need to make configurtion anywhere in IIS


I have not written manually anywhere in file its automatically gives the value
Please guide asap

What I have tried:

I tried so many things but still get stucked and
If I am trying to manually create an asp.net session ID through cookie then 2 session ID is generating
Posted

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