Just reading an article from this link https://www.codeproject.com/Articles/130588/Preventive-Method-for-URL-Request-Forgery-An-Examp on Preventive Method for URL Request Forgery
this article show we should append hash generated from query string to prevent URL Request Forgery.
when they create hash then they use seesion id and datetime
as salt key but my question is suppose user session expire and then user click on link. then validateToken
function will fire and compare hash data and querystring but if session expire then new session id will be generated then problem may occur....am i right? should we use session id as salt?
string salt = HttpContext.Current.Session["url_dynamickey"].ToString() +
DateTime.Now.ToShortDateString() + " " + DateTime.Now.Hour;
please share right guide line.