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

如何修復Undefined Index錯誤訊息

如何修復Undefined ...

錯誤的原因是因為當我們使用 $GET 和 $POST 方法取得變數時會發生這種情況,雖然PHP的部分...

錯誤訊息Division by zero的解決方式

錯誤訊息Division b...

錯誤訊息Division by zero發生的原因是因為除數是導致的錯誤: 解決方式如下: ) 運行...

在PHP強制顯示錯誤訊息的方法

在PHP強制顯示錯誤訊息的方...

若是單一檔案,只需要在每個PHP檔案裡添加下列行: iniset(&#;displayerrors&...

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