swfupload에 문제가 있습니다. 이처럼 session_id()를 전달하고 있습니다.swfupload 세션 문제가 세션을 파괴합니다.
참고 : 내 로컬 컴퓨터에서 제대로 작동합니다. MAMP를 사용하고 있습니다. 하지만 서버
/upload-file.php?s='<?php echo session_id()';
/upload-file.php?s=189477fcfa1ec7f630e70a09e1e84cae
하지만 유지하지 세션에서 일하는 내 현재의 세션을 파괴하지 (나 로그 아웃) 여기에 파일 업로드 코드입니다.
<?php
if(isset($_GET['s'])) {
session_id($_GET['s']);
session_start();
require_once 'admin/class/user.php';
$u = new User();
//Check for user logged in
if($u->islogged() == FALSE) {
header("location: index.php");
exit();
code continue .....
}
서버에 로그인하지 않은이기 때문에 나이가 swfupload있는 index.php를
디버거 창 출력
SWF DEBUG: ----- END SWF DEBUG OUTPUT ----
SWF DEBUG:
SWF DEBUG: Event: fileDialogStart : Browsing files. Multi Select. Allowed file types: *.jpg
SWF DEBUG: Select Handler: Received the files selected from the dialog. Processing the file list...
SWF DEBUG: Event: fileQueued : File ID: SWFUpload_0_0
SWF DEBUG: Event: fileDialogComplete : Finished processing selected files. Files selected: 1. Files Queued: 1
SWF DEBUG: StartUpload: First file in queue
SWF DEBUG: Event: uploadStart : File ID: SWFUpload_0_0
SWF DEBUG: ReturnUploadStart(): File accepted by startUpload event and readied for upload. Starting upload to /upload-file.php?s='189477fcfa1ec7f630e70a09e1e84cae' for File ID: SWFUpload_0_0
SWF DEBUG: Event: uploadProgress (OPEN): File ID: SWFUpload_0_0
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 317793. Total: 317793
SWF DEBUG: Event: uploadError: HTTP ERROR : File ID: SWFUpload_0_0. HTTP Status: 302.
SWF DEBUG: Event: uploadComplete : Upload cycle complete.
SWF DEBUG: StartUpload: First file in queue
SWF DEBUG: StartUpload(): No files found in the queue.
'/upload-file.php에 업로드를 시작 하시겠습니까? '='189477fcfa1ec7f630e70a09e1e84cae'' - 그 작은 따옴표가 있어야합니까? – thirtydot
따옴표없이 동일한 문제를 시도 했으니 – Saqueib