Re: [請益] 有關於Session問題

看板PHP作者 (月季)時間19年前 (2006/04/18 01:14), 編輯推噓3(300)
留言3則, 2人參與, 最新討論串2/5 (看更多)
※ 引述《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

04/18 01:18, , 1F
原來如此, 瞭解了...謝謝 m(_ _)m
04/18 01:18, 1F

04/18 10:33, , 2F
奇怪 我推文不是有說 請參考 1066 篇 哈
04/18 10:33, 2F

04/18 12:30, , 3F
1066 裡面沒有這篇的 CAUTION 部份, 而且兩個方法可並行!
04/18 12:30, 3F
文章代碼(AID): #14Gyq0Ko (PHP)
討論串 (同標題文章)
本文引述了以下文章的的內容:
以下文章回應了本文
完整討論串 (本文為第 2 之 5 篇):
文章代碼(AID): #14Gyq0Ko (PHP)