Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel 5.1 on ubuntu 14.04 Problems with session

I've got the following problem with laravel (5.1) sessions on ubuntu 14.04. On every request a new session file in storage/framework/sessions is generated. As you have already guessed, the session driver is 'file', 'lifetime' is set to 120. This seems to be some sort of permission error. I've set the permission of the storage folder to 755 (also 777), but every newly generated session file has the permission 664 (rw- rw- r--). Via google I've only found a session issue related to dd(...), but this is not the case here, especially that it works fine on a windows environment. What I originally wanted to do is use the redirect()->intended(), which uses the information stored in the session.

Do I have to run php artisan serve in a special way?

like image 554
epic_antihero Avatar asked Nov 10 '22 06:11

epic_antihero


1 Answers

Since I use Vagrant and Homestead everything is fine. Running the PHP built in webserver seems the be a kludge only.

like image 97
epic_antihero Avatar answered Nov 14 '22 21:11

epic_antihero