Session variables are not persisting between page loads

前端 未结 11 1425
梦谈多话
梦谈多话 2020-12-10 11:12

Can someone tell me why the session vars are not passing between pages? They were working up to 2 days ago. Now its not? There is a third party system that logs users in b

11条回答
  •  伪装坚强ぢ
    2020-12-10 11:25

    Check the size of the session file: (code taken from this post)

    $sessionfile = ini_get('session.save_path') . '/' . 'sess_'.session_id();  
    echo 'session file: ', $sessionfile, ' ';  
    echo 'size: ', filesize($sessionfile), "\n";
    

    If your session file has zero size, make sure there is still disk space available on your server. That was the problem I had.

    Check disk space with df -h on a linux server.

提交回复
热议问题