本文介绍了PHP 会话的 iPhone 问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我迄今为止在实践中从未见过的东西.

This is something that I in practice so far I have not seen before.

我制作了一个可以在所有设备上完美运行的网络应用程序(到目前为止我还在想).上周我收到了一些投诉,说应用程序的一部分不起作用.也许我已经检查了 100 多次我的代码,但我没有发现错误,错误行为是在某一时刻会话过期或只是没有设置 - 这是不可能的.该系统在一堆用户上进行了测试.

I made a web app which works beautifully on all devices (so far I was thinking). Last week I received a few complaints that one part of the application does not work. Maybe I've reviewed over 100 times my code and I have not found a mistake and error behavior is that at one point the session expires or is just is not setup - which is not possible. The system was tested on a pile of users.

今天我收到了一个使用 iPhone 5 的客户的回复.确实发生了会话无法正常工作的情况.

Today I received a response from a client that uses the iPhone 5. And really happens is that sessions are not working properly.

我使用此会话强制用户按顺序打开页面,并且不可能从页面跳转到页面.如果用户试图跳过该页面,只需回到开头并需要重新开始该过程.

I use this session to force the user to open the pages in the order and that there is no possibility of jumping from page to page. If the user tries to skip the page, just go back to the beginning and need to re-start the process.

在这个过程中的 iPhone 上让我回到开始和停止.它不允许您在清除缓存之前返回级别 1.

On the iPhone during the process returns me to the start and stop. It does not allow you to go to level 1 just returning back until you clear you cache.

这个错误在进程中的任何地方随机发生.

This error happen randomly anywhere in process.

-提一下,直到用户到达结束,我的会话才被删除.

-To mention, I sessions not deleted until the user reache the end.

是否有可能是 iPhone 的浏览器有问题或我这边有问题?

Is it possible that the iPhone has a problem with their browser or is error on my side?

谢谢!

推荐答案

这就是解决我之前面临的同样问题的方法.这可能会有所帮助..登录页面的会话问题可能是因为您在浏览器中打开的 url 不是唯一的.例如,假设您正在为您的网站创建登录页面,并且您已成功创建会话.现在,如果您从 url 登录,例如 http://geekzgarage.com 那么您的会话仅限于此 url.如果您再次打开上述网址,如 http://www.geekzgarage.com(注意两个网址中的 www.),然后您将看到您尚未登录.因此请确保您的网页始终以单一类型的网址打开.要么带 www.或不带 www.

This is what that solved the same problem i was facing earliar. May this will help..the session problems for login page might occur because the url you are opening in the browser are not unique. for example If say you are creating a login page for your website, and you have created sessions successfully. Now, if you are logging in from url say http://geekzgarage.com then your session is limited to this url only. If you again open the above url like http://www.geekzgarage.com (note www. in both urls), then you will see that you are not logged in. So please be sure that your webpage is opening always in single type of url. either with www. or without www.

这篇关于PHP 会话的 iPhone 问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-14 16:03