When exporting excel files in phpexcel, you cannot download files using IE8. saving the file as a dialog box flashed through

Source: Internet
Author: User
When exporting excel files in phpexcel, you cannot download the files using IE8. when you save the files as a dialog box, the IE 6 ie7 ie9 chrome ff is normal, that is, ie8 is unavailable, after clicking the export button, the "save" dialog box pops up and closes instantly. no solution was found after I checked it online.
You can see a solution in phpexcel:
If (strpos ($ _ SERVER ['http _ USER_AGENT '], 'msi ')){
Session_cache_limiter ("public ");
}
Session_start ();

The combination of various headers fails, so I have to seek help here and hope it can be solved.

Supplement: I don't know if it is related to window. open ().

There are not many points in total. I hope you can find a solution to this post.


Reply to discussion (solution)

If there are not many codes, you can paste them out. Let's test it for you.

Ie6 ie7 ie9 chrome ff is normal, that is, ie8 is not good. after you click the export button, the save dialog box pops up and closes instantly. no solution is found after you check it online.
You can see a solution in phpexcel:
If (strpos ($ _ SERVER ['http _ USER_AGENT '], 'msi ')){
Session_cache_limiter ("public ");
}
Session_sta ...... Since it is only related to a specific browser, it is a browser problem.
Try sending a browser-compatible header. Mate Mark is

About
Header ('x-UA-Compatible: IE = 7 ');
Uncertain

Reply by referencing the author:
Ie6 ie7 ie9 chrome ff is normal, that is, ie8 is not good. after you click the export button, the save dialog box pops up and closes instantly. no solution is found after you check it online.
You can see a solution in phpexcel:
If (strpos ($ _ SERVER ['http _ USER_AGENT '], 'msi ')){
Session_cache_limiter ("public ");
}
Se ......

I tested it. the values of $ _ POST [] in IE8 are all null. it should be caused by this problem, that is, when a new page is automatically displayed during download, what should I do if the session value is not passed in?

No code ......

It seems to be a problem with the 360 browser. this problem may occur in the IE8 kernel mode of 360, and no solution has been found yet.

How does the save dialog box pop up? I don't know how to set the save as dialog box?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.