PHP luôn báo Session expired, please login again

Table of Contents

PHP luôn báo Session expired, please login again

Lý do

Lỗi này xuất phát từ ổ đĩa chứa thư mục lưu session của PHP bị full, nó không ghi được session mới khi người dùng đăng nhập.

Giải quyết

Bổ sung config này vào top file php của bạn

ini_set('session.save_path', '/work/DEV/longdt/tmp/session/');


I also had this problem, plus when I did login and tried to change anything it threw an Invalid CSRF token error. Got the solution from this thread;

https://sourceforge.net/p/adminer/discussion/960418/thread/17b3972a/

I edited adminer and explicitly added in the session save path for the server;

ini_set('session.save_path',  '/tmp/');

Tham khảo

https://stackoverflow.com/questions/28402486/session-expired-please-login-again

Leave a Reply

Your email address will not be published. Required fields are marked *