magento本地安装后台无法登陆
来源:互联网 发布:十一选五遗漏数据 编辑:程序博客网 时间:2024/04/29 02:25
magento安装在本地之后无法登陆
解决方法:1.安装时直接用127.0.0.1做为访问地址,就可以登陆,如果用localhost的话,要打开magento的文件夹app/code/core/Mage/Core/Model/Session/Abstract/varien.php文件
修改第77-84行代码
源代码:
程序代码
// session cookie params
$cookieParams = array(
'lifetime' => $cookie->getLifetime(),
'path' => $cookie->getPath(),
'domain' => $cookie->getConfigDomain(),
'secure' => $cookie->isSecure(),
'httponly' => $cookie->getHttponly()
);
$cookieParams = array(
'lifetime' => $cookie->getLifetime(),
'path' => $cookie->getPath(),
'domain' => $cookie->getConfigDomain(),
'secure' => $cookie->isSecure(),
'httponly' => $cookie->getHttponly()
);
修改为:
程序代码
// session cookie params
$cookieParams = array(
'lifetime' => $cookie->getLifetime(),
'path' => $cookie->getPath(),
//'domain' => $cookie->getConfigDomain(),
//'secure' => $cookie->isSecure(),
//'httponly' => $cookie->getHttponly()
);
$cookieParams = array(
'lifetime' => $cookie->getLifetime(),
'path' => $cookie->getPath(),
//'domain' => $cookie->getConfigDomain(),
//'secure' => $cookie->isSecure(),
//'httponly' => $cookie->getHttponly()
);
注释掉三个条件
- magento本地安装后台无法登陆
- Magento常见问题三 magento后台无法登陆
- 本地安装magento1.9 后台无法登陆问题解决
- 常见magento问题三----magento后台无法登陆
- magento 首次安装后台登陆问题
- magento 本地后台登录不了,前台不能登陆
- magento安装好之后后台登陆不进去的解决方法
- 本地安装Magento教程
- 装了Magento发现不能登陆后台
- magento登陆不了后台的解决方法
- magento登陆不了后台的解决方法
- mambo安装后无法登陆后台的解决方法
- 通过magento后台的magento connect安装magento extension
- Magento本地安装基本配置
- Magento后台无法登录,帐号密码都正确。
- magento -- magento网站后台突然间无法保存任何配置
- Magento 安装后台登不上的解决方法
- phpcms v9 成功安装后无法登陆后台问题与解决
- android 条码识别软件开发全解析(续1详解)
- larbin中write的用法
- 如何删除电脑用户?
- 毕业五年决定你的命运
- ArrayList.toArray() 遇到java.lang.ClassCastException错误
- magento本地安装后台无法登陆
- STT培训学习总结
- Fedora 8下使用minicom的问题
- pmon参数设置
- 如何判断文件是否存在?
- : Invalid protocol: null错误
- android 条码识别软件开发全解析(续2详解绝杀!)
- 一个利用拼音与汉字混合过滤字符串的函数
- linux修改inittab没有保存权限的问题