我已经将app.js配置为将所有请求重定向到controller.js。下面是我的controller.js的一个示例。Controller/:id', controller); //db check using the id mentioned in the urlvar URL = "SOMEURL";
我想知道在php登录后如何将用户重定向到特定的链接。例如,在电子商务网站上,如果用户单击add to cart按钮,如果该用户没有登录,那么用户将被重定向到登录页面,登录后用户将被重定向到cart页面,这是请求页面,因此,我想知道如何编码这一点。empty($_SESSION['username'])) $url=' .php';//he