세션 탈취 검사하기
public ActionResult Index()
{
try
{
HomeIndexViewModel model = new HomeIndexViewModel();
AuthCheck authCheck = new AuthCheck(Request, Response);
AuthStatus status = authCheck.CheckLogon();
if (status == AuthStatus.SSOSuccess)
{
authCheck.CheckHijacking();
}
return View(model);
}
catch(AgentException agentException)
{
HomeIndexViewModel errModel = new HomeIndexViewModel();
errModel.ErrorCode = agentException.ExceptionCode.ToString();
return View(errModel);
}
}Last updated
Was this helpful?