2
我想在超时客户登录会话前2分钟显示一条警告消息,询问他们是否仍然存在。我将Cookie的使用时间设置为15分钟,因此在13分钟后,我要提醒用户会话超时。如何在magento中做到这一点?处理magento会话超时
如果有人提供一个清晰的想法,我会很高兴。我是magento的新手。
<script type="text/javascript">
var t = setTimeout('areYouStillThere()', 3000);
function areYouStillThere(){
if(confirm('Session is expiring. Are you still there?')){
location.reload();
}
}
</script>
可以改善:
太好了,谢谢 – Anz 2011-12-20 10:02:54