lundi 20 juin 2022

how to set redis laravel cookies for localhost:3338 frontend by domain server

i`m using laravel 5.6 and trying to create react frontend (redis session). my problem is: the cookies and sessions not responding to local host from server(domain) can i set localhost to domain whitelist session or another way to do that.

i changed config/session.php

[
   'lifetime' => env('SESSION_LIFETIME', 120),

   'expire_on_close' => false,

   'encrypt' => false,

   'files' => storage_path('framework/sessions'),

   'connection' => null,

   'table' => 'sessions',

   'store' => null,

   'lottery' => [2, 100],

   'cookie' => env(
       'SESSION_COOKIE',
       str_slug(env('APP_NAME', 'laravel'), '_') . '_session'
   ),

   'path' => '/',

   'domain' => env('SESSION_DOMAIN', 'localhost:3338'),

   'secure' => env('SESSION_SECURE_COOKIE', false),
   
   'http_only' => true,
   
   'same_site' => null,
]


from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/8MRDhS7
via IFTTT

Aucun commentaire:

Enregistrer un commentaire