Home  >  Article  >  Backend Development  >  页面返回问题

页面返回问题

WBOY
WBOYOriginal
2016-06-23 14:10:381067browse

1.用返回上一页,即history.go(-1),但用了session,导致出现网页已过期。我尝试在session_start()下加上header("Cache-control:   private"),但是header()在我这个notepad++似乎不能识别。。。颜色同session_start()不同。。。为什么?
2.因为对原页面A(即提交表单的页面)用表单来显示,但该页面A是需要另一页面B提交表单而得到的,所以对页面A自己提交表单,他需要保存页面B的信息,怎么破?
我也不知道我意思表达清楚没。。


回复讨论(解决方案)

没表达清楚,不懂你的意思。

没表达清楚,不懂你的意思。
果然。。。那第一个问题懂否?就是说我出现的颜色在在session_start()下加上header("Cache-control:   private"),但是该函数在我这个notepad++似乎不能识别。。。(因为header出现的颜色似乎并不是函数的颜色呀。)

函数应该是什么颜色,没报错就对了。

函数应该是什么颜色,没报错就对了。
那为什么会出现还是网页已经过期的问题。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn