Click here to Skip to main content
15,890,690 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
I want to change Path attribute of ASP.NET_SessionId in my web application.
I am trying to change the path of the ASP.NET_SessionId cookie in Global.asax's Session_Start event as below.
HttpContext.Current.Response.Cookies["ASP.NET_SessionId"].Path = "/MyApp";


When I check the application in crome , 2 cookies are being created (here are the headers):

Set-Cookie: ASP.NET_SessionId=; path=/MyApp/
Set-Cookie: ASP.NET_SessionId=qwtixezaxnrexxvvdjdg5jje; path=/; HttpOnly 


What I have tried:

HttpContext.Current.Response.Cookies["ASP.NET_SessionId"].Path = "/MyApp";
Posted
Updated 29-Aug-18 19:51pm
Comments
Rujj 3-Aug-18 3:13am    
have you got the solution to this problem ??? If yes then please post the solution .

1 solution

kindly post a solution to this problem
 
Share this answer
 
Comments
Richard Deeming 30-Aug-18 10:17am    
This is not a solution to the question. DO NOT post comments as solutions!
Member 12639261 3-Sep-20 6:01am    
How to check ASP.NET_SessionId cookie in chrome?

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