@tisuchi this time it gives error file_put_contents(/var/www/html/laravelBA/storage/framework/sessions/90a2smrOFY783UCJ969GNdhyP6BYBxyn38H2lCQn): failed to open stream: Permission denied but my session is empty
i give 777 and it fixed but I am not sure is it true way
It can be a temporary solution. But giving 777 permissions makes the directory and its contents readable, writable, and executable by everyone which can pose serious security risks.