Menu Close
    Start a Project Request quote Reading list Switch to dark mode

    Session Management in Opencart Version 3.x

    With the launch of Opencart Version 3, Opencart has discontinued the use of native session. Opencart has introduced the “maintaining of the session using database” in the version and “maintaining using the file” in the version but still, it continued to use the native PHP session ($_SESSION). In version 3, Opencart is using file by default to maintain the session.

    If you want to use the database for maintaining the session then you have to modify ‘default.php’ file residing at ‘system/config/’. You have to modify ‘session_engine’ index.

    You can take a look into the process of reading and writing of session in both db and file. For accessing the files, you can follow the path ‘system/library/session/’.

    File Session:



    DB Session:




    . . .


    Add Your Comment

    Be the first to comment.

    Back to Top
    Hire Us!
    Brief us about your requirements and we'll get back to you.
    Woo! Hooy!
    We have just recieved your project brief and our expert will contact you shortly.
    Send Again