[問題]有關session

看板PHP作者 (托兒所嬰兒)時間19年前 (2007/02/08 13:10), 編輯推噓4(402)
留言6則, 3人參與, 最新討論串1/3 (看更多)
小弟今天在教學網站學session時 把他的code抓下來用 結果凡是遇到session就不能跑 不知道寫法錯誤還是語法有問題 煩請各位大大指點 這是教學網站的程式碼 http://yorjing.ifastnet.com/protected.jpg
http://yorjing.ifastnet.com/logout.jpg
http://yorjing.ifastnet.com/access_denied.jpg
(htm檔) http://yorjing.ifastnet.com/index.jpg
(htm檔) 上面4個都原封不動 http://yorjing.ifastnet.com/login.php.txt (抱歉 螢幕不夠大...XD) http://yorjing.ifastnet.com/login_success.jpg
上面這兩個 我把裡面的session拿掉才跑的出來 如果加了原來的session不能跑 小弟不知道怎麼回事? 可以請各位大大指點一下嗎? 小弟不知道哪裡弄錯了 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 59.112.238.19

02/08 13:15, , 1F
try $_SESSION['login_time']..其他以此類推@@
02/08 13:15, 1F

02/08 13:17, , 2F
不能跑是顯示什麼錯誤?
02/08 13:17, 2F

02/08 13:46, , 3F
session_start()還是放第一行比較好
02/08 13:46, 3F

02/08 13:47, , 4F
不要用session_register(),爬文應該找的到資料
02/08 13:47, 4F

02/08 14:39, , 5F
不能跑就是什麼都看不到
02/08 14:39, 5F

02/08 14:47, , 6F
所以才不知道怎麼辦阿
02/08 14:47, 6F
文章代碼(AID): #15oh3Ra- (PHP)
討論串 (同標題文章)
以下文章回應了本文
完整討論串 (本文為第 1 之 3 篇):
10
17
4
6
文章代碼(AID): #15oh3Ra- (PHP)