今天在zend framework中设置cookie ,如 a.text.com/test/a 设置了cookie只能在test下获取cookie,
而在a.text.com/test1/a下获取不到cookie 原因是因为在使用setcookie时没有指定path为'/'导致path只有在test生效。
今天在zend framework中设置cookie ,如 a.text.com/test/a 设置了cookie只能在test下获取cookie,
而在a.text.com/test1/a下获取不到cookie 原因是因为在使用setcookie时没有指定path为'/'导致path只有在test生效。
转载于:https://www.cnblogs.com/fll369/archive/2012/08/31/2664918.html