科尔多瓦inappbrowser jsession cookie无法在Web浏览器中清除

问题描述

我们正在尝试使用基于jsession id的inApp浏览器登录身份验证,此功能还不错,但是如果用户多次打开inApp浏览器,则重复的/旧的jsession ID将不允许对用户进行身份验证。如果有其他方法可以解决此问题,请提供帮助。

我们在项目中尝试了以下示例代码。

this.inAppBrowserInstance = this.inAppBrowser.create(URL,'_blank');    
this.inAppBrowserInstance.on('beforeload')
      .subscribe(event => {
        this.inAppBrowserInstance.executeScript({ code: `document.cookie = "JSESSIONID=cookievalue"` }).then()

项目环境:基于cordova的ionic v3项目。

谢谢 karthik

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...