File tree 2 files changed +4
-9
lines changed
2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change 312
312
|
313
313
*/
314
314
315
- 'domain ' => env ( ' SESSION_DOMAIN ' ) ,
315
+ 'domain ' => '' ,
316
316
317
317
/*
318
318
|--------------------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -41,20 +41,16 @@ public function register()
41
41
$ app ['config ' ]->set ('session.files ' , $ sessionDir );
42
42
}
43
43
44
- //Now that we know where the instance is bing called from
45
- //Let's add a domain level cache.
46
- $ domain = 'localhost ' ;
47
- if (! $ app ->runningInConsole ()) {
48
- $ domain = $ app ['request ' ]->getFullUrl ();
49
- }
50
-
51
44
//Most of this is set in the config but some things aren't clear until we get here.
45
+ $ app ['config ' ]->set ('domain ' , is_array (parse_url (BASE_URL )) ? parse_url (BASE_URL )['host ' ] : null );
52
46
53
47
$ sessionManager = new \Illuminate \Session \SessionManager ($ app );
54
48
55
49
return $ sessionManager ;
56
50
});
57
51
52
+
53
+
58
54
$ this ->app ->singleton ('session.store ' , function ($ app ) {
59
55
// First, we will create the session manager which is responsible for the
60
56
// creation of the various session drivers when they are needed by the
@@ -70,6 +66,5 @@ public function register()
70
66
});
71
67
72
68
$ this ->app ->singleton (SymfonySessionDecorator::class, SymfonySessionDecorator::class);
73
-
74
69
}
75
70
}
You can’t perform that action at this time.
0 commit comments