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 取得今...

JavaScript 使用 Date() 來取得時間的資訊。 再使用指令如 getDate()、ge...

Ubuntu環境下apache 目錄啟動.htaccess 功能

Ubuntu環境下apach...

.htaccess 檔案是目錄層面的設定檔,可以對目錄變更 Apache 的設定。 要使用 .hta...

使用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