不知道楼主想问的是什么意思~~
$_SESSION["..."]="..."不就可以?
$_SESSION["..."]="..."不就可以?
解决方案 »
- EclipsePHP Studio v1.2.2 run as没有 php Script 选项
- 求SQL语句日期比较
- 10个php的基础比试题求解
- php解析json的问题
- 如何从$c='a=1,2&b=3,4'中得到$a='1,2',$b='3,4'呢?
- 请教:关联读取数据库数据的问题
- 简单问题,请问$file = fopen($filename, 'r') or exit("unable to open file ($filename)");
- 我這一句錯在哪裡?在JavaScript中插入php語句。
- 急~!PHP怎么安装!按照步骤做不管用啊!
- php中的session变量,可不可以被asp来获取啊!
- 新手上路,不幸堵车,望哪位大吓指明一条前进路!
- 正则表达式
$_SESSION["..."]="..."不就可以?
这个只是赋值,并未写入文件
不写入吗,不是吧。
我觉得用这个就可以的。
楼主看看这样能行不~$_SESSION["temp"] = "temp";
$temp = $_SESSION["temp"];
session_write_close();
session_start();
$_SESSION["temp"] = $temp;不过好象没这个必要~~~
Session data is usually stored after your script terminated without the need to call session_write_close(), but as session data is locked to prevent concurrent writes only one script may operate on a session at any time. When using framesets together with sessions you will experience the frames loading one by one due to this locking. You can reduce the time needed to load all the frames by ending the session as soon as all changes to session variables are done. 引入这个函数似乎是为了加快程序~~~