string ip = HttpContext.Current.Request.UserHostAddress; HttpContext failuser = HttpContext.Current; failuser.Session.Timeout =1; if (failuser != null) { if (failuser.Session[ip] != null) failuser.Session[ip] = (int)failuser.Session[ip] + 1; else failuser.Session[ip] = 1; // retval = failuser.Session[ip].ToString(); if ((int)failuser.Session[ip] > 2) { retval = "!"; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)