简体   繁体   中英

laravel session expires if we clear app from android webview

I am working on Laravel and android Webview project. I am calling web URL in Android Webview. Project back-end is in Laravel.

I am facing issue in, When I was clearing the app it'll every-time asking me to login. I want user to logged in as soon as he/she will not manually click on logout button.

Basically I want user session infinity time. Please help me to clear this. Thanks in advance.

Session is not longer exists if user leaved. Or You can use Cookies instead of Session (but it is not safe).

I think a better way is to follow Oauth, and to create an access token and a refresh token.

Oauth2 by Google

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM