Support the ongoing development of Laravel.io →
Requests Session Blade
Last updated 3 months ago.
0
$guest_username = 'misafir'.$_COOKIE['guest'];

On that line you probably have the error. The $_COOKIE won't be set until the next browser load. So you'd want to change that line to:

$guest_username = 'misafir'.$a;
Last updated 3 months ago.
0

stickman373 said:

$guest_username = 'misafir'.$_COOKIE['guest'];

On that line you probably have the error. The $_COOKIE won't be set until the next browser load. So you'd want to change that line to:

$guest_username = 'misafir'.$a;

man you saved my life! :) thank you so much.

Last updated 3 months ago.
0

Sign in to participate in this thread!

LaraJobs

Your banner here too?

barantr90 barantr90 barantr90 Joined 23 May 2014

Moderators

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

Your logo here?

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

© 2022 Laravel.io - All rights reserved.