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

解決iphone 不能使用colorbox 滑動的方式

解決iphone 不能使用c...

pexelsphotoiphone #cboxLoadedContent, #cboxContent...

RPO(Relative Path Overwrite)相對路徑覆蓋攻擊

RPO(Relative P...

首先,先來用例子說明何謂「相對路徑」何謂「絕對路徑」。 例如你有一個網址為http://www.de...

使用PHP取得指定月份最後一天的日期

使用PHP取得指定月份最後一...

使用PHP要如何抓某個月份的最後一天 例如抓本月份的話可以使用下列範例: date(&#;Ymt&#...

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