Welcome Guest, Not a member yet? Register   Sign In
Disable sessions file creation on ci4
#1

My code igniter 4 is creating a session file for each access. And its no deleting it.

How can i avoid those files to be created? The documentation doesnt say anything about it.

I have put some code on .env file but didnt work. I have set the folder to NULL but it created a folder called "NULL" lol.
Code:
app.sessionDriver = 'CodeIgniter\Session\Handlers\FileHandler'
app.sessionCookieName = 'ci_session'
app.sessionSavePath = NULL
app.sessionMatchIP = true
app.sessionTimeToUpdate = 0
app.sessionRegenerateDestroy = true

Thanks
Reply
#2

Change the session driver to another one.
Reply
#3

(06-11-2022, 12:00 PM)iRedds Wrote: Change the session driver to another one.

I just dont want those files be created. In fact, i dont need sessions on this website. Those files are useless.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB