Questions tagged «cookies»

3
在Joomla 3.x中设置持久性Cookie的正确方法是什么
我想为我网站上的所有用户设置一个“目标” cookie,以提供量身定制的内容。Cookie需要在登录/注销过程中保持不变,因此看来我无法使用jSession,它在登录/注销时已清除。 我可以用老式的方式实现 setcookie( "destinationcookie", $_POST['destination'], strtotime( '+90 days' ) ); $destination = isset($_POST['destination']) ? $_POST['destination'] : $_COOKIE["destinationcookie"]; ...但是我敢肯定,joomla有更好的藏身之处。PS-据我所知,关于此的文档几乎不存在。
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.