cxzlr 发表于 2010-7-29 15:51:38

cookies 问题求教

.htaccess文件如何
RewriteEngine on
RewriteCond $1 !^(index\.php|static|userinfo|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1

目录:
system
    application
    cache
    ...
我在ci中使用php 的 cookie   
只能在当前action中能取出,换到其它action 就取不出如

第一个问题:
http://localhost/test/login中 使用 php 的setcookie("tttttttttttttt","test",3600,'/');
http://localhost/infotxt/index    在这个action 中取不出
http://localhost/index 也取不出

第二个问题:

我通过disuz7.2登录,发送消息到 http://localhost/userinfo/uc/api.php?........................同步登录
注意:RewriteCond $1 !^(index\.php|static|userinfo|robots\.txt)
然后,我在http://localhost/userinfo/test.phpprint_r();
有时能获取到值,有时获取不到值,在,我又试试在,

谁能帮我想想办法

在ci中使用php cookie 让整个站都能正常共享 cookie

我做一个检查用户是否登录的函数,放在了helpers 下 也不行。

cxzlr 发表于 2010-7-29 16:20:20

谁帮帮偶呀
页: [1]
查看完整版本: cookies 问题求教