Laravel 4.2 subdomain series.
I have a dynamic wildcard subdomain routing setup. In my app /config/session.php I have:
'session' => '.mydomain.com',
'driver' => 'database',
When I login to mydomain.com it works, I get
Auth::check()==TRUE
When I go to mysubdomain.mydomain.com
Auth::check()==FALSE
When I return to mydomain.com after visiting mysubdomain.mydomain.com
Auth::check()==FALSE
Last, my .htaccess file redirects all requests from www.mydomain.com to mydomain.com.
When I check resources / cookies on chrome at mydomain.com I only see one cookie with
domain .mydomain.com
When I check the resources / cookies on mysubdomain.mydomain.com I see two cookies:
.mydomain.com
mysubdomain.mydomain.com
Anyone have a hint for me? It cannot seem that it is visible.
+3
source to share
No one has answered this question yet
Check out similar questions: