i have a web application that export CSV and i logged in as admin but what happened during the exportation the IE opens a new tab and export the CSV but what happens next when you click any of the link on the web app you will automatically logout!
This only happen on IE.
here is the header i used:
header("Content-type:application/vnd.ms-excel");
header("Content-disposition:attachment;filename=".$this->filename);
I am using cakephp 1.3.x.x
TIA :D
I think the problem lies in "open a new tab". What you probably have is this new tab opening a new session, efectivelly killing the old one.
A solution can be to open new tab passing the SESSID as a parameter in the url of the new tab. So PHP detect correctly the session and don't create a new one.
Get CSVTei 2012-04-10 08:56