swfupload destroy session? php

后端 未结 2 558
忘掉有多难
忘掉有多难 2021-01-21 15:58

hy, i need a little help here:

i use SWFupload to upload images! in the upload function i make a folder call $_SESSION[\'folder\'] and all the files i uplo

2条回答
  •  广开言路
    2021-01-21 16:15

    SWFUpload doesn't pass the session ID to the script when you upload, so you have to do this yourself. Simply pass the session ID in a get or post param to the upload script, and then in your application do this before session_start:

    if(isset($_REQUEST['PHPSESSID'])) {
        session_id($_REQUEST['PHPSESSID']);
    }
    

提交回复
热议问题