简体   繁体   English

通知用户登录清除浏览器缓存

[英]Notify user to login on clear the browser cache

Hi I am working on a web-application which deals which jQuery,Javascript,Html as a part of UI. 嗨,我正在开发一个Web应用程序,该应用程序处理jQuery,Javascript,HTML作为UI的一部分。 we have login authentication which will ask for username and password. 我们有登录身份验证,将要求用户名和密码。
so my question is how to notify the user automatically to login into my application, when user will clear the cache. 所以我的问题是,当用户清除缓存时,如何自动通知用户登录我的应用程序。 for example: do login into facebook. 例如:登录Facebook。 after login clear the cache of browser. 登录后,清除浏览器的缓存。 instantly you will get a notification to login again. 即时,您将收到通知以再次登录。 please help me out. 请帮帮我。

Save login information in a cookie. 将登录信息保存在cookie中。 When it's no longer present - redirect user to your login page. 当不再存在时-将用户重定向到您的登录页面。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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