Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这个问题可能已经存在,但它确实得到了普遍的回答,如果有人确切地告诉我如何传递会话变量并检索它们,我将不胜感激。
我已经在 swiffuploader 选项中设置了 appendCookieData: true 。如何传递会话变量?
谢谢。
fancyupload 将$_POST['PHPSESSID']根据会话 cookie 进行设置。
$_POST['PHPSESSID']
假设您在服务器端有 php,请确保接收文件的脚本启动会话,如:
if(isset($_POST['PHPSESSID'])) { session_id($_POST['PHPSESSID']); } session_start();