In my store login and register just keep on refreshing i have add the following lines in every register.phtml after form tag
<?php echo $this->getBlockHtml('formkey'); ?>
<input type="hidden" name="form_key" value="<?php echo Mage::getSingleton('core/session')->getFormKey() ?>" />**strong text**
but still not working !
configuration/general/web/cookie settings
:
Hhtp only :no
, Cookie restriction :no
, Time :86400
.
added these lines in login.phtml but still just refreshing
<input type="hidden" name="form_key" value="<?php echo Mage::getSingleton('core/session')->getFormKey(); ?>" />
added theses lines in accountController.php
in login post action but still issue exists the same
* Login post action
*/
public function loginPostAction(){
// generate form_key if missing or invalid
if (!($formKey = $this->getRequest()->getParam('form_key', null))
|| $formKey != Mage::getSingleton('core/session')->getFormKey()) {
$this->getRequest()->setParams(array(
'form_key' =>Mage::getSingleton('core/session')->getFormKey()
));
}
if ($this->_getSession()->isLoggedIn()) {
$this->_redirect('*/*/');
return;
}