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

can’t log into admin? 
 
erictr1ck
Member
 
Total Posts:  56
Joined:  2009-02-12
 

just got done doing a fresh magento install and when trying to log into the admin it doesnt go anywhere. there are no errors about username / password either. however, if i do try to log in with the wrong username / password i do get erros, so i know that i am using the right log in information. any ideas?

 
Magento Community Magento Community
Magento Community
Magento Community
 
erictr1ck
Member
 
Total Posts:  56
Joined:  2009-02-12
 

the problem is only a redirect issue. if i log in the manually go to /admin/dashboard/ it does work. any ideas on why the redirect doesnt work? id like to fix this.

 
Magento Community Magento Community
Magento Community
Magento Community
 
erictr1ck
Member
 
Total Posts:  56
Joined:  2009-02-12
 

man this is really bugging me. ideas anyone?

 
Magento Community Magento Community
Magento Community
Magento Community
 
erictr1ck
Member
 
Total Posts:  56
Joined:  2009-02-12
 

-Go to app/code/core/Mage/Core/Model/Session/Abstract/Varien.php file within your magento directory.

-Find the code,

session_set_cookie_params(
$this->getCookie()->getLifetime(),
$this->getCookie()->getPath(),
$this->getCookie()->getDomain(),
$this->getCookie()->isSecure(),
$this->getCookie()->getHttponly()
);

-Replace above code by,

session_set_cookie_params(
$this->getCookie()->getLifetime(),
$this->getCookie()->getPath()
//$this->getCookie()->getDomain(),
//$this->getCookie()->isSecure(),
//$this->getCookie()->getHttponly()
);

 
Magento Community Magento Community
Magento Community
Magento Community
 
erictr1ck
Member
 
Total Posts:  56
Joined:  2009-02-12
 

thanks erictr1ck for finding and posting the answer! also, thanks everyone else for your ideas / support too!

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