Android 网络浏览器和某些诺基亚网络浏览器中缺少会话 cookie
我使用 Spring 2.5 开发了一个 Java EE Web 应用程序。该应用程序具有身份验证步骤,如果用户输入正确的登录数据,他将重定向到安全页面。我的问题出在 Android Web 浏览器中,某些诺基亚 Web 浏览器不发送会话 cookie。然而,该应用程序在所有其他网络浏览器和移动网络浏览器中运行良好。我已经测试了以下方法,通过在登录后添加会话属性,然后检查每个请求的属性通过以
两种方式添加会话范围 bean,我无法解决问题。我的环境是 Apache Tomcat 5.5 , Java 1.5
谢谢并等待大家的帮助。
创建步骤:
- 有一个登录屏幕
- 用户输入用户数据并单击提交按钮
- 在服务器端,它捕获请求,如果用户数据正确,用户将被重定向到安全站点(到目前为止,它正在正常工作)在每个浏览器中)
- 用户单击安全站点上的链接,该链接将进入有效的会话检查拦截器(在这一步中,我注意到我在诺基亚 6300 网络浏览器和内置网络的索尼爱立信 Xperia 中没有获得授权会话浏览器)。
然而,在所有其他 Web PC Web 浏览器和移动 Web 浏览器(例如诺基亚 E 71 内置 Web 浏览器)中,Opera Mini 会发送回 JSessionId。请注意,使用上述诺基亚 6300 和 Xperia 可以登录雅虎邮箱和 G 邮箱。
I have developed a Java EE web application using Spring 2.5. This application has authentication step and if user enter correct log-in data he will redirect to a secure page. My Issue is in Android web browser and some of nokia web browsers does not send session cookie. However this application works fine in all other web browsers and mobile web browsers. I have tested following ways, By Adding session Attribute after logged in then check attribute each request By Adding session scope bean
in both ways i was unable to resolve the issue. My environment is Apache Tomcat 5.5 , Java 1.5
Thanks and waiting for a help from all of you.
Steps to create:
- There is a log-in screen
- User enter user data and click submit button
- In the server side it capture the request and if user data is correct user will be redirect to the secure site ( up to now it's working as it should be in every browser )
- user click a link on the secure site which will go in a valid session check interceptor ( in this step,I have noticed I'm not getting authorized session in Nokia 6300 web browser and in Sony Ericsson Xperia built in web browser).
However in all other web PC web browsers and in mobile web browsers such as Nokia E 71 built in web browser, opera mini sending back JSessionId. Please note that using above mention Nokia 6300 and Xperia can logged in to Yahoo mail and G mail.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
检查 cookie 的过期时间(在 Set-Cookie 响应标头中)并检查手机上的时间/日期设置。确保电话和服务器都设置为正确的时间。
Check the expires time on the cookie (in the Set-Cookie response header) and check the time/date settings on the phone. Make sure the phone and the server are both set to the correct time.