In login form, I set cookie expiration to 120 minutes. It's working in my local machine. But It's not working at Online Hosting Server. But when I set expiration to 15 seconds or 1 minutes, it's working at Online Hosting Server. If I set to long time, it's only work for 6 minutes. The cookie expiration is no longer than 6 minutes at Online Hosting Server. I use Plesk Web Host Edition. I change session timeout in ASP.NET Settings. But it's still not working. Where do I need to change setting. I did not found the solution in also Help Guide of Plesk.
I set cookie like this
FormsAuthenticationTicket authTicket = new FormsAuthenticationTicket(1, checkUser.UserName, DateTime.Now, DateTime.Now.AddMinutes(FormsAuthentication.Timeout.TotalMinutes), true, "");
string encTicket = FormsAuthentication.Encrypt(authTicket);
HttpCookie faCookie = new HttpCookie(FormsAuthentication.FormsCookieName, encTicket);
Response.Cookies.Add(faCookie);
In Web Config,
<authentication mode="Forms">
<forms name="mitf" loginUrl="~/Account/LogIn" timeout="120" />
<sessionstate timeout="120">
Can anyone help me please...