作者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
推 JoeHorn:原來如此, 瞭解了...謝謝 m(_ _)m 04/18 01:18
推 appleboy46:奇怪 我推文不是有說 請參考 1066 篇 哈 04/18 10:33
推 JoeHorn:1066 裡面沒有這篇的 CAUTION 部份, 而且兩個方法可並行! 04/18 12:30