Home  >  Article  >  Backend Development  >  php解决uploadify/flash/swf上传时session丢失的问题

php解决uploadify/flash/swf上传时session丢失的问题

WBOY
WBOYOriginal
2016-06-20 13:05:041304browse

 在uploadify/flash/swf上传参数中加入session参数,如下:

session_start(); 
if($_COOKIE['PHPSESSID'] && ($session_id=$_COOKIE['PHPSESSID']) !=session_id()){ 
session_destroy(); 
session_id($session_id); 
session_start(); 
}

这样就解决了 FLASH 不能正确传递页面session的问题


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn