Carlos
Carlos

Reputation: 237

Laravel sharing same session

I wanna have two or more Laravel Projects in my computer, but when I created the new project with login and passord, the session from this new project affects the old project.

enter image description here

How I resolve this question?

I'd like to call simply like http://localhost/project, http://localhost/project1, but they use the same session.

After all this I desire put these same configuration in a server

Thanks

Upvotes: 0

Views: 2059

Answers (1)

ceejayoz
ceejayoz

Reputation: 180014

In config/session.php, you can change the cookie value to change the name of the cookie Laravel uses to store the session ID. Making it unique to each app will allow both to coexist on the same domain name.

Upvotes: 2

Related Questions