WebEngine“保持登录状态";功能性 [英] WebEngine "keep me logged in" functionality

查看:62
本文介绍了WebEngine“保持登录状态";功能性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何存储状态的方法,基本上像浏览器一样具有保持登录状态"的功能? 我一直在寻找CookieManager,并进行了很多搜索,但未能在此上找到任何东西. 我有一个社交供稿阅读器,如果用户单击链接,它将在WebView上打开.事实是,在我的应用程序的每次运行中,当他们单击指向私人Facebook帖子的链接时,他们都需要登录自己的帐户才能查看它,这非常不舒服. 感谢您的帮助.

Is there any way to store state, basically to have a "keep me logged in" functionality like browsers do? I've been looking into the CookieManager, and search a lot but haven't been able to find anything on this. I have a social feeds reader, in which if a user clicks on a link it is opened on a WebView. The thing is, that on every run of my app, when they click on a link pointing to a private facebook post, they need to log in to their accounts in order to view it, which is quite uncomfortable. Appreciate your help.

推荐答案

我发现了这个 http://docs.oracle.com/javase/tutorial/联网/cookies/custom.html 允许我创建一个持久性cookie处理程序.

I found this How do I persist cookies when using HTTPUrlConnection? and this http://docs.oracle.com/javase/tutorial/networking/cookies/custom.html which allowed me to create a persistent cookie handler.

这篇关于WebEngine“保持登录状态";功能性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆