PHP application SWFUpload Upload questions about the session
SWFUpload in the upload to reopen a new session process, can not be consistent with the original program session, need to upload the original program to pass the SessionID, according to it to "retrieve" its due session
But I can't find anything. Any friends know, help. Thank you, sir. I'm using the DEDECMS program.
This is the seeeion that swfupload in the open.
JScript Code
Upload_url: "upload.php", post_params: {"PHPSESSID": "
"}, file_size_limit: "2048", File_ Types: "*.jpeg;*.jpg;*.bmp;*.png;*.gif;*.flv;*.mp4;*.wma", file_types_description: "Allow upload format", File_ Upload_limit: "", File_queue_limit: "0",
This is the information for the upload.php processing page
PHP Code
if (Isset ($_post["PHPSESSID"])) { session_id ($_post["PHPSESSID"]); } else if (Isset ($_get["PHPSESSID"])) { session_id ($_get["Phpsessid"); } $img _path = '/uploads/'; Session_Start ();
How should I get the session, and determine whether the user has login permissions to upload files, know the friend told, please.
------Solution--------------------
Session_Start (); Put it on the top.
------Solution--------------------
You download my example.
http://download.csdn.net/detail/sibang/4538151
This example seems to integrate the SessionID part.