PHP Program Application SWFUpload The question about the session

Source: Internet
Author: User
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.
  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.