문제

I'm writing a small application written with Mojolicious and I was wondering how I could go about alerting and/or redirect a user on session timeout?

Many thanks.

도움이 되었습니까?

해결책

When the session cookie expires the browser will no longer send it with requests to the server. So when your server gets a request without a cookie to a restricted uri it needs to either redirect to the login screen, or tell the client app to do so.. which it should probably be doing already.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top