我如何显示登录页面 [英] How I Can Show Login Page
本文介绍了我如何显示登录页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
解决方案
你好
当用户点击按钮购买产品或添加到购物车按钮时,您应检查当前用户会话是否已过期。
为会话变量中的第一个商店用户ID,然后检查session [userid] == null。如果它为null重定向到登录页面
guys i'm creating a project. i dont know how can i show a login page or to login message if user click the buttons of buy product or add to cart product withput login ???
解决方案
Hi
while the user is clicking button buy product or add to cart button u should check whether the current user session expired or not.
for that first store user id in a session variable then check whether session["userid"]==null .if it is null redirect to login page
这篇关于我如何显示登录页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文