Click here to Skip to main content
15,905,616 members

Comments by Divya Shrivastav (Top 2 by date)

Divya Shrivastav 19-Dec-23 6:32am View    
@M Imran Ansari

But 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
Divya Shrivastav 19-Dec-23 5:08am View    
But 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