File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
setup/src/Magento/Setup/Mvc/Bootstrap Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -123,15 +123,16 @@ public function authPreDispatch($event)
123
123
/** @var \Magento\Framework\App\State $adminAppState */
124
124
$ adminAppState = $ objectManager ->get ('Magento\Framework\App\State ' );
125
125
$ adminAppState ->setAreaCode (\Magento \Framework \App \Area::AREA_ADMIN );
126
- $ objectManager ->create (
127
- 'Magento\Backend\Model\Auth\Session ' ,
126
+ /** @var \Magento\Backend\Model\Auth\Session $adminSession */
127
+ $ adminSession = $ objectManager ->create (
128
+ \Magento \Backend \Model \Auth \Session::class,
128
129
[
129
- 'sessionConfig ' => $ objectManager ->get (' Magento\Backend\Model\Session\AdminConfig ' ),
130
+ 'sessionConfig ' => $ objectManager ->get (\ Magento \Backend \Model \Session \AdminConfig::class ),
130
131
'appState ' => $ adminAppState
131
132
]
132
133
);
133
-
134
- if (! $ objectManager -> get ( ' Magento\Backend\Model\Auth ' )-> isLoggedIn ()) {
134
+ if (! $ objectManager -> get (\ Magento \ Backend \ Model \Auth::class)-> isLoggedIn ()) {
135
+ $ adminSession -> expireSessionCookie ();
135
136
$ response = $ event ->getResponse ();
136
137
$ response ->getHeaders ()->addHeaderLine ('Location ' , 'index.php/session/unlogin ' );
137
138
$ response ->setStatusCode (302 );
You can’t perform that action at this time.
0 commit comments