jquery uploadify和codeigniter会话id问题 [英] jquery uploadify and codeigniter session id problem
问题描述
我知道这是一个着名的问题,但我不能让它工作指向这些链接: -
I know this is famous question but i am not able to make it work refering to those links :-
问题是一样的。没有传递会话ID,这会导致很多问题。
这是我的config.php: -
This is my config.php :-
$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 2700;
$config['sess_encrypt_cookie'] = FALSE;
$config['sess_use_database'] = FALSE;
$config['sess_table_name'] = 'ci_sessions';
$config['sess_match_ip'] = FALSE;
$config['sess_match_useragent'] = FALSE;
$config['sess_time_to_update'] = 300;
正如你可以看到我已经设置了 sess_match_useragent
为false,但我的会话ID仍在改变。任何人都可以告诉我如何通过我的会话ID在scriptData?因为Codeigniter不使用查询字符串方法,而是建立漂亮的URL。
As you can see i have already set sess_match_useragent
to false but still my session ids are getting changed. Can anybody tell me how do i pass my session ids in scriptData? Because Codeigniter doesn't use querystring approach instead it builds up pretty urls.
提前感谢:)
推荐答案
uploadify与SWFUpload类似,在上传文件时不发送cookie。这是因为Adobe Flash。
uploadify, which is similar to SWFUpload, does not send cookie when uploading files. This is because of Adobe Flash.
您需要寻找一些解决方法,例如。发送sessoin id在文件数据中的文件;或重新设计您的网络应用程序的工作流程。
You need to looking for some workaround, e.g. send sessoin id in post data with the file; or redesign the work flow of your web app.
这篇关于jquery uploadify和codeigniter会话id问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!