[Authorize]
public class MyController : BaseController
{
[PermissionAuthorize]
public ActionResult GridData()
{
return Json(data, JsonRequestBehavior.AllowGet);
}
}
I have Created PermissionAuthoize attribute for check permission of user on particular action. I have a problem After the User session or ticket is expire at that time if user send ajax requrest to Controller then Authorize attribute reject the request and return as html login form to user.this region user think app is not performing. its show the bad impact to user.
so , i want to redirect to user to login page if they send ajax request on ticket expire.
Can i create one other authorize attribute for controller is it gud way?