Opencart Force Login

前端 未结 4 2136
萌比男神i
萌比男神i 2020-12-12 01:28

I would like to redirect a customer to the login page if they are not logged in from any page on the site. I am trying to limit access to a subdomain to a specific customer

4条回答
  •  情书的邮戳
    2020-12-12 01:47

    I would recommend checking if you are already on the login page, if so don't run code. You can check this if your on a page called login.php. Simple and clean solution

提交回复
热议问题