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

ahmadissa's avatar

new session created every access or refresh

I have weird issue, I know there's many who had this problem, but for me its only occurs when I use opera browser, I tried chrome and safari it works without problems, but with opera 2 new sessions created each time and I can do nothing with the current session always null.

what I do to handle the session

Driver = database

Session::put('name', $name);
Session::get('name');

is it bug with opera or I'm doing something wrong! I don't know ?

0 likes
2 replies
tisuchi's avatar

Have you tried this?

In your config/session.php

Change

'cookie' => 'laravel_session',

to

'cookie' => 'myapp_session',
1 like

Please or to participate in this conversation.