Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

johnw65's avatar

Unable to creating session on the Production

On the development environment, the application creates a file session in framework/sessions folder. However, on the production environment it's not writing to the framework/sessions folder. So I'm unable to log in to our application. Also, noticed that the 'storage/logs/laravel.log' is blank.

Unfortunately, my admin is stating that it's not a permission issue. I

0 likes
9 replies
vincent15000's avatar

It's probably a permissions problem.

Have you checked that the folders (sessions, logs, ...) are writable ?

johnw65's avatar

@vincent15000

I don't have access to the server to verify. Let me ask my admin one more time.

1 like
vincent15000's avatar

@johnw65 You don't have access to the server, so how do you know that in production it's not writing to the framework/sessions folder ?

vincent15000's avatar

@johnw65 Perhaps it's another problem. Is your application on a shared webhosting ? In which folder have you copied the project folder ?

johnw65's avatar

@vincent15000

He wrote a basic php script to create a session in that directory, so it's not a permission issue.

1 like
vincent15000's avatar

@johnw65 Perhaps it's a permission problem in that sens that Laravel don't have the permission, but your admin has executed a script with the needed rights.

johnw65's avatar
johnw65
OP
Best Answer
Level 4

@vincent15000

Simple fix. Production and development servers were using different methods to keep session info

Please or to participate in this conversation.