页面重定向到背面时出现问题 [英] problem when redirecting page to the back

查看:94
本文介绍了页面重定向到背面时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我已经开发了一个有一些条件的Web应用程序,根据条件会跳过某些页面,但是当我单击后退"按钮时,根据条件它会出现在最后一页,而不是在右边页面,例如:

第1页
第2页
第3页
第4页

page2有2个条件,根据第一个条件,下一个页面是page3,然后是page4,根据第二个条件,下一个页面是page4,但是在page4上形成后退按钮,我怎么会发现它是从page2或page3重定向的,所以如果用户想要转到首页,然后根据用户的看法,第一首页将是第3页天气.最后一页是第3页或第2页.

任何帮助将不胜感激
谢谢

Hi All,

I have developed a web application witch have some conditions, according the conditions some pages are skipped but when i click on back button then it comes on the last page but not on the right page according the condition for example :

page1
page2
page3
page4

page2 have 2 condition according first condition the next page is page3 and then page4 and according to second condition next page is page4 and but form the back button on the page4 how would i find that it is redirected from page2 or page3 so that if user want to go to the back page then the first back page will be page 3 weather according to user''s view the last page is page 3 or page2.

Any help will be appreciated
Thanks

推荐答案

嗨提尼丁,

您可以使用会话变量解决问题.
在重定向时设置此会话变量(例如,从第2页或第3页开始).

因此,在执行BACK操作时,您可以轻松识别上一页.

希望对您有用.
hi tnitin,

your problem can be solved by using session variable.
set this session variable while redirecting (i.e from page 2 or page 3 in your case).

so while doing BACK operation you can easily identify the previous page.

I hope this will be useful for you.


这篇关于页面重定向到背面时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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