cancel
Showing results for 
Search instead for 
Did you mean: 

Frontend sessions do not appear to work

Frontend sessions do not appear to work

Case:

  • I have a fresh install of 2.1.5.
  • I am able to login to the M2 backend
  • I cannot login to the frontend. Additionally, No notifications appear on the frontend (i.e. "Invalid password provided") though I can see messages injected into my Magento cookies.

My Config: 

  • Cookie Path and Cookie Domain are empty in my config. My cookie path is "/" and my cookie domain is "m2.domain.com"
  • My store URL is https://m2.domain.com.
  • Use Secure URLs on Storefront & Use Secure URLs on Admin are set to: Yes

 

Troubleshooting Efforts:

 

I modified Magento\Framework\Data\Form\FormKey\Validator::validate() to include

 

var_dump($this->_formKey->getFormKey(),$formKey = $request->getParam('form_key', null)); 

 When I clear my cookies, the first time I login the keys are identical yet I am redirected to the login page without any notifications.

I then immediately try to log in again and the keys no longer are a match.