I have a route that is polled a couple of times per second on average. This route doesn't utilize sessions, and looking at the response headers from the route there is no cookies set in the response.
However, I can see that the sessions folder is increasing constantly. How can I prevent my route/controller from creating session files?
EDIT: I tried to change session driver to Redis. However now there are lot's of "empty" sessions written to Redis insted.. Problem seems to be that Laravel always create a session.
Removing it from the kernel would break the rest of my application unfortunately. But now I changed to the Redis driver and theres still lot's of sessions created (in Redis now). I guess that PHP itself can't create the Redis sessions, right?
But now I changed to the Redis driver and theres still lot's of sessions created (in Redis now).
Of course because session are started on every request. It also may be created even if the session is not actually started. It should not be a problem, other people dont seem to have problem with session files.