Session Cookies A standard Laravel app seems to be setting two cookies, one with the name set in the session config file and another with a random string.
Does anyone know what this second cookie is, is it the standard php session cookie?
Thanks
I just checked a fresh L4.2 and I get only the laravel_session cookie...
What version of php are you using?
I am seeing this extra cookie on a couple of separate apps.
I am seeing this across different sites, some local and some remote with a variety of different servers.
The cookie has the same expiration time as the main session cookie but doesn't have the secure flag set (the reason I am looking into this).
If I delete either of the cookies I get logged out so it seems its a laravel thing.
Does the csrf protection use the main laravel session cookie?
Laravel doesn't use PHPSESSID so what's the contents of the cookie? Only ones you'll have on a fresh app are the one named laravel_session (set in config) and remember_(md5string)
The name is a 40 character random string and it contains a large chunk of encrypted data.
Yeah not too sure, doesn't do that on my Laravel 4.2.* sites.
PHP 5.3 and 5.5 if it means anything, probably not.
I am running php 5.5 on everything and this occurs on apache, nginx and artisan serve.
Hopefully someone else might have an idea
Please sign in or create an account to participate in this conversation.