Probably a dumb question.
For example if I create cookie with name Permission, value true, and expires in 3 minutes and I have Attribute [CheckPermission].
[CheckPermission]
public ActionResult test()
{
//do some shitty process that takes 5 minutes
var flag = cookie["Permission"];
//rest of code here
}
Ok so let's say you can only access test method if Permission cookie is set to true, test method contains some shitty process that took around 5 minutes, by the time it's done the cookie is already expired because it was set to expires in 3 minutes. Is this scenario possible or .NET automatically prevent this? If yes, then how do you prevent the cookie to not timeout in the middle of operation?
Thanks
Sorry for bad english
Aucun commentaire:
Enregistrer un commentaire