jquery uploadify and codeigniter session id problem

耗尽温柔 提交于 2019-12-24 10:33:06

问题


I know this is famous question but i am not able to make it work refering to those links :-

The problem is the same. No session id is being passed which causes a lot of problems.

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;

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.

Thanks in advance :)


回答1:


uploadify, which is similar to SWFUpload, does not send cookie when uploading files. This is because of Adobe Flash.

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.



来源:https://stackoverflow.com/questions/4291095/jquery-uploadify-and-codeigniter-session-id-problem

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!