Search code examples
octobercms

October CMS 2.2.4 - Backend: Invalid Security Token


I'm running October CMS v2.2.4 on a dedicated managed server with Cloudways. I keep getting "Invalid Security Token" every few minutes after saving any changes in the Backend and I'm forced to refresh the page, redo my changes, then save again. Any ideas on how to fix this?


Solution

  • Here are two possible solutions:

    1. Give 775 permission to storage directory. The server may not have permission to create a session file.

    2. Change session driver from file to database so the session will manage by the database instead.

    SESSION_DRIVER=database