- Should we add both domains in session_set_cookie_params ? Or Laravel do it dynamically ?
- Should we redirect non-www to www in .htaccess ? Or Laravel do it dynamically ?
Thanks
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello, I'm using Laravel 5.1 the latest version and I discovered that the www. and non-www can caused session and Auth lost I tested this on two hosts one with SSL . So when I tried to login and change host from www to non-www I see that I'm not logged and while its on www logged . I tried to change request header but nothing happened .
Any Idea their ? Bitcoin Boy.
Please or to participate in this conversation.