I got a problem when users click a hyper link( /Home/OpenTaskDetail?taskId=6f5d664b-5f4c-47d0-9fdd-df0d697c3364&process=QuyTrinhTinDung&stage=A.01&appCode=CAR.11092019.00120059&processType=&pageIdentity=2 ), my application force user logout and redirect
to login page but it does not redirect to login page all of time. I can't debug or trace anything because it doesn't go to my controller.
When browser cache has been cleared and I reopen that link, it is working normally.
>my application force user logout and redirect to login page but it does not redirect to login page all of time.
Do you mean when authentication ticket expires , your application force user logout but not redirect to login page ? If not redirect to login page , what page the application shows? How about put [Authorized] attribute at action that page returned from ?
Rather than "it does not redirect to login page all of time" take the time to see what actually happens when it fails. For example "F12 Network" could help to find if this is really a caching problem (or you have a server side exception maybe ignored).
Member
2 Points
13 Posts
Application automatic redirect to login page
Sep 12, 2019 04:17 AM|phongbv|LINK
I got a problem when users click a hyper link( /Home/OpenTaskDetail?taskId=6f5d664b-5f4c-47d0-9fdd-df0d697c3364&process=QuyTrinhTinDung&stage=A.01&appCode=CAR.11092019.00120059&processType=&pageIdentity=2 ), my application force user logout and redirect to login page but it does not redirect to login page all of time. I can't debug or trace anything because it doesn't go to my controller.
When browser cache has been cleared and I reopen that link, it is working normally.
Do anyone know that problem?
All-Star
18815 Points
3831 Posts
Re: Application automatic redirect to login page
Sep 13, 2019 02:03 AM|Nan Yu|LINK
Hi phongbv,
>my application force user logout and redirect to login page but it does not redirect to login page all of time.
Do you mean when authentication ticket expires , your application force user logout but not redirect to login page ? If not redirect to login page , what page the application shows? How about put [Authorized] attribute at action that page returned from ?
Best Regards,
Nan Yu
Member
2 Points
13 Posts
Re: Application automatic redirect to login page
Sep 13, 2019 08:43 AM|phongbv|LINK
I don't know the reason. I tried logout then login again but it is not working until my browser cached was cleared.
All-Star
48510 Points
18071 Posts
Re: Application automatic redirect to login page
Sep 13, 2019 09:03 AM|PatriceSc|LINK
Hi,
Rather than "it does not redirect to login page all of time" take the time to see what actually happens when it fails. For example "F12 Network" could help to find if this is really a caching problem (or you have a server side exception maybe ignored).