Zen-Cart的URL地址后面带有?zenid=[参数],解决方法
前两天在群里,有个朋友一直在问这个问题,今天一个别人一个博客里看到了这个文章,就转过来了,希望对有需要的朋友,能有用处!
以下为转贴
1)、在后台Configuration->session 将Force Cookie Use 设置为ture;
一般如果网站只是在刚开启的时候存在zenid的话,那么,只要这样设置一下就可以了;
注意:本设置将会强制要求使用cookie,部分客户会因此无法购物,则出 现cookie usage页面,请慎用!
另一种就是从头到尾,URL地址后面一直都会有一串zenid= 参数后缀,这个情况可能是因为缓存文件夹没有写分配权限或者不存在,可以试试方案 2:
2)、引用英文论坛上的一个正确回复:
In case some of you are wondering why zen_id is all of a sudden being added to your links (or always has) and you want it gone:
Be sure that your “Session Directory” in Configuration>Sessions is set to a directory that actually exists and is writable. If the directory doesn’t exist, then zen cart will starting adding zenid to URLS.
Hope this helps.
Be sure that your “Session Directory” in Configuration>Sessions is set to a directory that actually exists and is writable. If the directory doesn’t exist, then zen cart will starting adding zenid to URLS.
Hope this helps.
这句话的意思就是说在zen-cart后 台的Configuration>Sessions里有一项Session Directory,它是指定session所使用的文件夹的,如果这个文件夹不存在,或者不可写的话。那么就会在URL上显示zenid=,当然,解决 方法就是让这个项所指向的文件夹存在并且可写。
无风的飘逸原创文章,转载请注明: 转载自邹清水 – 你的朋友
Categories: Uncategorized