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

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

WBOY
Release: 2016-06-20 13:05:04
Original
1317 people have browsed it

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

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

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


Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template