Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Logging in issue
 
pierzu
Jr. Member
 
Total Posts:  5
Joined:  2013-01-01
 

Hi

I have problem with logging in.
When i log in (by ajax), everythinh is ok, ajax relod block showing log out instead of log in, but when i reload page, there is again log in, not - log out button. Ok, so i try to login one more time, but now my ajax controller tell that i’am already logged in, but how?

My block tells me that i’m not logged in:

$this->helper('customer')->isLoggedIn()

My controller tells me that i’m logged in:

$session->isLoggedIn()

How it is possible? What’s the problem?

---
update

Ok, problem was, because i didnt call parent:preDispatch in my overriden account controller.
But, when i call it, i have 302 code in my new actions…

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top