a.php
<a href="b.php?PHPSESSID=<? echo session_id(); ?>"> 这样试试。或者
session.use_cookies = 0
<a href="b.php?PHPSESSID=<? echo session_id(); ?>"> 这样试试。或者
session.use_cookies = 0
解决方案 »
- 问一个.htaccess进行重定向的问题
- 如何判断 php对象的一个属性是否存在
- 为什么mysql语句在dos环境下可以执行,而在php中用mysql_query();却不可以,为什么?
- 有人说能加快包含文件运行速度???
- 如何获取指定数组元素的下标?
- 请教高手php有没有办法设置一个共享内存,每隔5分钟修改一次共享内存的内容
- 梦网的特服号怎么申请?
- 哪位好心的哥哥姐姐知道为什么我的环境变量当页面刷新时不能保留吗?
- 求推荐一些PHP中高级的书
- 三级联动下拉框搜索后怎么让select框选中回显?
- 怎样让服务器的页面不下载到Temporary Internet Files,而客户IE可显示其内容?
- 在iis下如何设置虚拟路径的问题??
这样不行,我刚试一下,还是老样子
session_register("sessregoster");
session_register("sesspwd");
session_register("sessemail");
$_SESSION["sessregister"]=$register_id; //email as session
$_SESSION["sesspwd"]=$txtUserpd;//password as session
$_SESSION["sessemail"]=$email;//$email as session
session_register("sesspwd");
session_register("sessemail");
还是不行但是我发现:在我的网站下有几个虚拟目录,其中有一个虚拟目录下可以传输成功,但是在这个虚拟目录下就是不行,这是什么原因啊????
我的虚拟目录设置如下:
Alias /icons/ "E:/Apache Group/Apache2/icons/"
#===================================================
Alias /test/ "E:/Apache Group/Apache2/test/"
Alias /test1/ "E:/Apache Group/Apache2/test1/"
Alias /sinocast/ "E:/Apache Group/Apache2/sinocast/"
Alias /sinotest/ "E:/Apache Group/Apache2/sinotest/"
Alias /company/ "E:/Apache Group/Apache2/company/"
#======================================================
<Directory "E:/Apache Group/Apache2/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
#=====================================================
<Directory "E:/Apache Group/Apache2/test">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
#==========================================================
<Directory "E:/Apache Group/Apache2/sinocast">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
#===========================================================
<Directory "E:/Apache Group/Apache2/sinotest">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
#===========================================================
<Directory "E:/Apache Group/Apache2/test1">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
#==========================================================
<Directory "E:/Apache Group/Apache2/company">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
#==========================================================
其中在testAlias /icons/ "E:/Apache Group/Apache2/icons/"
#===================================================
Alias /test/ "E:/Apache Group/Apache2/test/"
Alias /test1/ "E:/Apache Group/Apache2/test1/"
Alias /sinocast/ "E:/Apache Group/Apache2/sinocast/"
Alias /sinotest/ "E:/Apache Group/Apache2/sinotest/"
Alias /company/ "E:/Apache Group/Apache2/company/"
#======================================================
<Directory "E:/Apache Group/Apache2/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
#=====================================================
<Directory "E:/Apache Group/Apache2/test">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
#==========================================================
<Directory "E:/Apache Group/Apache2/sinocast">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
#===========================================================
<Directory "E:/Apache Group/Apache2/sinotest">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
#===========================================================
<Directory "E:/Apache Group/Apache2/test1">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
#==========================================================
<Directory "E:/Apache Group/Apache2/company">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
#==========================================================
其中在test下就可以实现session变量的传输,但在sinocast下就不行,这是什么原因啊?/
真是郁闷,请各位师兄弟指教
先谢了
http://art.21e.cn/tec/7/witchina1418.htm
$_SESSION["sessregister"]=$register_id; //email as session
$_SESSION["sesspwd"]=$txtUserpd;//password as session
$_SESSION["sessemail"]=$email;//$email as session这个之前,输出$txtUserpd和$email看看是否有输出
session.save_path = c:\winnt\temp