简体   繁体   中英

mkdir not working after rmdir in IE

I am having a strange issue with mkdir in IE9.

I seem to be able to check and create folders using

$temp_main_folder = session_id();
if(!is_dir($temp_main_folder)){ 
    mkdir($temp_main_folder . "/", 0755);
}

and remove a folder and all files inside the folder using unlink and rmdir.

This works every time with Firefox, Chrome, Safari. The issue is that the first time I run mkdir in IE it works. And the first time I run the rmdir in IE it works. However the next time I try to run mkdir in IE nothing happens. There are no error and I can see the folder being removed. I have to restart IE to get it to work again.

I am running Windows with Apache 2 webserver.

Browsers can't effect php, as its server side..

The only effect browser can make can be decided by looking at the session_id() function..

A wild guess probably ie is not sending cookies that are required to get session id..

谢谢大家,但问题是IE正在缓存mkdir请求,因此当我检查文件夹是否存在时,IE仍然认为它确实存在!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM