Laravel 8 session not persist when redirect to the home (root) page
I'm working on Laravel 8 website, on the local environment the site works well, the issue appeared after deployment on cpanel, the process works as follows, after login successfully the user is redirected to profile page, the problem is seen when redirecting to the (root) home page, the session is not persist,
i've changed the session_drive from 'file' to 'database' however the problem not solved, also added the web middleware to web routes but not solved the problem
@Snapey Thanks Snapey, You are right according the web middleware, i've seen the laravel session cookie in my browser as follows two laravel_session & two XSRF-TOKEN one with Domain: ".domain.com" and the other with Domain: "www.domain.com" moreover i noticed that cookie parameter "Expires / Max-Age:" is the same as the current time
@Snapey Also i've created a new laravel project, it worked fine short time and the issue came again without changing any settings, could the issue related to the server or somthig?
@Snapey I solved the cookie repetition as there were old cookies saved in the sessions table, the unusual staff is the cookie Max-age/ Expires in the same as current time, i noticed that it's the same cookie Max-age/ Expires as on local server