1. <legend id='Vtvk9'><style id='Vtvk9'><dir id='Vtvk9'><q id='Vtvk9'></q></dir></style></legend>

      • <bdo id='Vtvk9'></bdo><ul id='Vtvk9'></ul>
    2. <tfoot id='Vtvk9'></tfoot>
      <i id='Vtvk9'><tr id='Vtvk9'><dt id='Vtvk9'><q id='Vtvk9'><span id='Vtvk9'><b id='Vtvk9'><form id='Vtvk9'><ins id='Vtvk9'></ins><ul id='Vtvk9'></ul><sub id='Vtvk9'></sub></form><legend id='Vtvk9'></legend><bdo id='Vtvk9'><pre id='Vtvk9'><center id='Vtvk9'></center></pre></bdo></b><th id='Vtvk9'></th></span></q></dt></tr></i><div id='Vtvk9'><tfoot id='Vtvk9'></tfoot><dl id='Vtvk9'><fieldset id='Vtvk9'></fieldset></dl></div>
    3. <small id='Vtvk9'></small><noframes id='Vtvk9'>

      1. 如何检测用户是否为同一会话打开两个选项卡?

        How to detect if user open two tabs for same session?(如何检测用户是否为同一会话打开两个选项卡?)
        • <bdo id='670XX'></bdo><ul id='670XX'></ul>

            1. <i id='670XX'><tr id='670XX'><dt id='670XX'><q id='670XX'><span id='670XX'><b id='670XX'><form id='670XX'><ins id='670XX'></ins><ul id='670XX'></ul><sub id='670XX'></sub></form><legend id='670XX'></legend><bdo id='670XX'><pre id='670XX'><center id='670XX'></center></pre></bdo></b><th id='670XX'></th></span></q></dt></tr></i><div id='670XX'><tfoot id='670XX'></tfoot><dl id='670XX'><fieldset id='670XX'></fieldset></dl></div>
                  <tfoot id='670XX'></tfoot><legend id='670XX'><style id='670XX'><dir id='670XX'><q id='670XX'></q></dir></style></legend>

                  <small id='670XX'></small><noframes id='670XX'>

                    <tbody id='670XX'></tbody>
                  本文介绍了如何检测用户是否为同一会话打开两个选项卡?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我使用 CakePHP 完成了一个预订应用程序,其中涉及到结帐页面之前的几个步骤.在这些步骤之间,我将信息存储在会话中.

                  I've done a booking application done using CakePHP which involves a few steps before the checkout page. In between these steps I store the information in the session.

                  它的工作原理是第 1 步要求他们填写信息.进入第 2 步时,第 1 步中的信息将被保存到会话对象中.当他们继续进行其他步骤时,该过程会重复.最后结账时,所有数据都会保存到数据库中.

                  How it works is that Step 1 requires them to fill in their information. When going to Step 2, the information in Step 1 will be saved into the session object. As they proceed in the other steps, the process repeats. At the end when they checkout, all the data is then saved to the database.

                  如果用户在浏览器中打开应用程序的一个实例,一切都会很好.但是,一旦他们在同一个浏览器中为同一个应用程序打开了另一个页面或另一个选项卡,就会出现问题.

                  Everything works great if the user opens one instance of the application in the browser. But once they have another page or another tab opened for the same application in the same browser, problem happens.

                  假设他们在选项卡 A 和选项卡 B 中打开了两个应用程序实例.在选项卡 A 中,他们在步骤 1 中输入了详细信息并继续执行步骤 2.然后用户在选项卡 B 中执行相同的操作.

                  Let's say they have two instance of the application open in Tab A and Tab B. In Tab A they entered the details in Step 1 and proceed to Step 2. Then the user does the same thing in Tab B.

                  在用户结帐的最后一步,Tab A 中的信息与 Tab B 中的信息相同.

                  At the last step when the user does a checkout, information in Tab A is the same as in Tab B.

                  目前,我只能认为最好的方法是防止用户在两个浏览器实例中打开同一个应用程序.

                  Right now, I can only think the best way is to prevent the user from opening the same application in two browser instance.

                  当用户尝试在选项卡 B 中打开另一个实例时,是否有办法检测并提示用户先在选项卡 A 中填写预订表单?

                  Is there a way to detect and prompt the user to complete the booking form in Tab A first when they try to open another instance in Tab B?

                  推荐答案

                  1.同样的问题(及解决方案):https://sites.google.com/site/sarittechworld/track-client-windows

                  1.The same problem (and solution) : https://sites.google.com/site/sarittechworld/track-client-windows

                  2.您可以通过POST或GET方式发送信息

                  2.You can send information by POST or GET

                  这篇关于如何检测用户是否为同一会话打开两个选项卡?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  PHP Upload File Validation(PHP 上传文件验证)
                  PHP Error - Uploading a file(PHP 错误 - 上传文件)
                  How can I write tests for file upload in PHP?(如何在 PHP 中编写文件上传测试?)
                  php resizing image on upload rotates the image when i don#39;t want it to(php在上传时调整图像大小会在我不想要它时旋转图像)
                  How to send additional data using PLupload?(如何使用 PLupload 发送附加数据?)
                  change button text in js/ajax after mp4 =gt;mp3 conversion in php(在 php 中的 mp4 =gt;mp3 转换后更改 js/ajax 中的按钮文本)
                • <small id='njBan'></small><noframes id='njBan'>

                    <bdo id='njBan'></bdo><ul id='njBan'></ul>

                    • <legend id='njBan'><style id='njBan'><dir id='njBan'><q id='njBan'></q></dir></style></legend>

                            <tbody id='njBan'></tbody>
                        1. <tfoot id='njBan'></tfoot>
                          <i id='njBan'><tr id='njBan'><dt id='njBan'><q id='njBan'><span id='njBan'><b id='njBan'><form id='njBan'><ins id='njBan'></ins><ul id='njBan'></ul><sub id='njBan'></sub></form><legend id='njBan'></legend><bdo id='njBan'><pre id='njBan'><center id='njBan'></center></pre></bdo></b><th id='njBan'></th></span></q></dt></tr></i><div id='njBan'><tfoot id='njBan'></tfoot><dl id='njBan'><fieldset id='njBan'></fieldset></dl></div>