作者taiwancat (月季)
看板PHP
标题Re: [请益] 有关於Session问题
时间Tue Apr 18 01:16:35 2006
※ 引述《ZGY (Z)》之铭言:
: 推 appleboy46:观念错误 请看 1066篇 以及官方网 04/17 23:24
: 推 JoeHorn:哪边观念错误? 问题就是出在 session 变数没指定. 04/18 00:50
: → JoeHorn:指定方法是个人习惯问题.. 用 regioster 有错? O_o 04/18 00:51
: 推 taiwancat:php manual有说明 尽量避免使用旧的用法 04/18 01:12
我帮appleboy46佐证一下
以下资料来自php manual
register_globals: important note:
Since PHP 4.2.0, the default value for the PHP directive register_globals is
off. The PHP community encourages all to not rely on this directive but
instead use other means, such as the superglobals
=========
Caution:
If you are using $_SESSION (or $HTTP_SESSION_VARS), do not use
session_register(), session_is_registered(), and session_unregister().
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 218.162.72.191
1F:推 JoeHorn:原来如此, 了解了...谢谢 m(_ _)m 04/18 01:18
2F:推 appleboy46:奇怪 我推文不是有说 请参考 1066 篇 哈 04/18 10:33
3F:推 JoeHorn:1066 里面没有这篇的 CAUTION 部份, 而且两个方法可并行! 04/18 12:30