Loading...

PHP無法保存SESSION的問題

Temperature: 0 °C

Mark ChangMark Chang
author_tools

一天,客戶反應系統後台無法登入。

而這問題是發生在客戶電腦更換了IP位置。

而我這邊也只是開放新的IP可以進到後台環境,若不是允許的IP則直接將他導入到前台首頁去。

神奇的是客戶的辦公室裡有一台電腦就可以登入(當然他也換了IP)。

測試了許多方式,也換了不同的瀏覽器,也清了暫存,但不行就是不行。

最後,我在session_start前面加上@符號。

寫入頁面跟讀取頁面都加上,神奇的可以了!!!

總之,先記錄下來,但我還是不知道到底是怎麼了。

https://innstory.com/story-PHP無法保存SESSION的問題-2591
PHP

Prev
 php檢查陣列中大於0的值

Next
Linux底下查看Mysql版本 

About the Author

Mark Chang

離不開電腦的宅男

Visitor message

Leave some footprints to prove that you visited me

Recommended reading

Author's other related stories

javascript如何取得檔案的副檔名?

javascript如何取得...

var filenamea = "aaa"; alert(getFileExte...

PDO PHP - PDOException - Numeric value out of range: 1264 Out of range value for column user_ip at row 1

PDO PHP - PDOE...

最近遇到一個問題,一個Mysql的錯誤訊息。 我想要紀錄一個IP資訊,我會先用以下方式擷取用戶端使用...

PHP輸出到WORD跟EXCEL 簡易做法

PHP輸出到WORD跟EXC...

pexelsphotooffice WORD: $filename="test.doc&q...

Please select an option

error

Hi, thank you for your participation, but you cannot vote repeatedly~

Join innstory now and start recording your story.

"Innstory" is a place to store stories. We are committed to becoming a warm platform. Deepening the bonds between people is our direction.
We are convinced that the blockchain between people is not just a cold calculation. Join us now.

Wrong format