Laravel shares session

Asked

Viewed 62 times

0

I have a system A where I store a session

$login = $request->input( 'login' );
$request->$session()->put('login', $login );

And a system B which stores the session:

$request->$session()->put('tentativa', 1);

Every time I set the value in the system B to session A loses its value

Remembering that they are in different folders.

In the system A the user can only browse the system if he has logged in

I’m not using the php artisan serve

I’m using apache2.4 anyway

I wish that didn’t happen, as I do for each system to use its respective session?

And remembering that in system B has no session variable for system A

  • What you call every system!?

  • http://localhost:81/systemA and http://localhost:81/systemB

  • So it is explained you are in the same connection spool and so one system overrides the other ... !!! is actually running everything on the same service ... ie, sharing session, etc ... !!! Another host has to be configured for the other system! No problem with Laravel (which actually is no problem with PHP) ... !

  • What would that be like outro host?

  • http://www.raphaelfiga.com/development/instalando-configurando-virtualhost-apache-windows/ read ...

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.