Support the ongoing development of Laravel.io →
Security Requests Session
Last updated 2 years ago.
0

You have two choices. If you want to share the session between both apps, you need to set the session driver to database and store the sessions of your projects in one table.

If you want to seperate sessions, so session l4 is only valid for your l4 app, then change the cookie prefix. That should work. Don't forget to clean browsers cookies!

0

Thank a LOT sir. You are absolutely right :) especially about the cookie thing! It took me really long to find that after all, cookie was the main culprit, not session....

Thanks again

0

You're welcome ;)

0

Sign in to participate in this thread!

Eventy

Your banner here too?

RayyanRiaz rayyanriaz Joined 15 Mar 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.