如何强制magento登出 [英] How to force magento to logout
本文介绍了如何强制magento登出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在magento社区1.6中工作.我需要在站点流程的某一阶段清除会话或注销当前用户.我该怎么办??
I am working in magento community-1.6. I need to clear session or logout the current user at one stage of my site process. How will I do this.?
推荐答案
Mage::getSingleton('customer/session')->logout();
这篇关于如何强制magento登出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文