抑制本机 Android 会话超时警告
所以我只是想知道是否有人知道一种方法来抑制 Android 浏览器中出现的会话超时对话框。
基本上,我正在使用 Jquery Mobile 编写一个 Web 应用程序,并自己处理会话检查,如果它不再有效,则将它们重定向到登录页面。我希望弹出的警告不显示,或者我可以使用 Javascript 覆盖该行为?有人有什么想法吗?谢谢
SO I was just wondering if anyone knows of a way to suppress the session timeout dialog that comes up in the android browser.
Basically, I am writing a web app using Jquery Mobile and handle the session check myself, and redirect them to a login page if it's not longer valid. I would like that warning that pops up not display, or perhaps I could override the behavior using Javascript? Anyone have any ideas? Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我想通了。我最终向该函数添加了一个回调来处理用户的会话超时。
因此,如果会话过期,则会触发登录事件并重定向它们。
I figured it out. I ended up adding a callback to the function to handle the user's session timeout.
So if the session is expired, the signin event is triggered and they are redirected.