丢失一些会话值 [英] Losing some session values
问题描述
奇怪的事情刚刚开始发生,因为我在网站上开发了一个数据库应用程序。突然一个会话变量停止了
工作,因为我将它从1页传递到另一个页面(我相信它可以在几天之前好几天)。
我做了一些测试。
$ temp = 67;
echo $ temp;在这个页面上给出了67
S_SESSION [''org''] = $ temp;
通过确认,下一页的值为67 >
$ temp =" abc"
echo $ temp给出" abc"在这个页面上
S_SESSION [''org''] = $ temp;
通过确认并在下一页有价值abc
$ temp = $ _POST [''CUST_ORG'']
echo $ temp;给出组织1在这个页面上
S_SESSION [''org''] = $ temp;
下一页没有值
其他会话变量似乎还可以。
混淆Bromley
谢谢John
Something strange has just started to happen as I have been developing
a db application on a site. Suddenly a session variable has stopped
working as I pass it from 1 page to another (I am sure it was OK a few
days ago).
I have done some tests.
$temp = 67;
echo $temp; gives 67 on this page
S_SESSION[''org''] = $temp;
Passes ok and has value 67 on the next page
$temp = "abc"
echo $temp gives "abc" on this page
S_SESSION[''org''] = $temp;
Passes ok and has value abc on the next page
$temp = $_POST[''CUST_ORG'']
echo $temp; gives "org 1" on this page
S_SESSION[''org''] = $temp;
No value on next page
Other session variables seem ok also.
Confused of Bromley
Thanks John
推荐答案
temp = 67;
echo
temp = 67;
echo
temp;在这个页面上给出了67
S_SESSION [''org''] =
temp; gives 67 on this page
S_SESSION[''org''] =
temp;
通过正常在下一页有67的值
temp;
Passes ok and has value 67 on the next page
这篇关于丢失一些会话值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!