Re: [請益] 有關於Session問題
※ 引述《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
04/18 01:18, 1F
推
04/18 10:33, , 2F
04/18 10:33, 2F
推
04/18 12:30, , 3F
04/18 12:30, 3F
討論串 (同標題文章)
PHP 近期熱門文章
PTT數位生活區 即時熱門文章