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

設定Postfix使用SMTP Server當作relay主機

設定Postfix使用SMT...

在/etc/postfix/main.cf 裡修改relayhost 將#relayhost = [...

使用CSS讓整個網頁由彩色變黑白色!

使用CSS讓整個網頁由彩色變...

blackandwhite5 把下面的語法加入網頁的<head>與</head&g...

分享 斜槓青年正夯,什麼都會才是王道?他舉賈伯斯、巴菲特為例,勸你萬萬不可跨領域-風傳媒

分享 斜槓青年正夯,什麼都會...

巴菲特:「了解自己的能力圈,待在裡面。這個圈圈到底有多大其實無關緊要。知道圈圈的邊線究竟在哪則非常重...

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