Request.Cookies
is incoming. Response.Cookies
is outgoing.
Request.Cookies
only knows about the current request. I don't think it updates until the following request when you add via Response.Cookies.
You could try getting the cookie via Response.Cookies["previousTool"]
in case Request.Cookies["previousTool"]
is null.
If that doesn't work you'll need another way, such as storing the value in the Session or HttpContext.Current.Items
.