note 69669 modified in function.session-start by danbrown

From: Date: Mon, 20 Jun 2011 15:03:33 +0000
Subject: note 69669 modified in function.session-start by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-180702@lists.php.net to get a copy of this message
For some reason, MSIE gets confused when session_start() is called and the Content-disposition has been set to "attachment". The only solution I've found is this: <?php if(strpos($_SERVER['HTTP_USER_AGENT'],"MSIE")) { session_cache_limiter('public'); } session_start(); ?> --was-- For some reason, MSIE gets confused when session_start() is called and the Content-disposition has been set to "attachment". The only solution I've found is this: if(strpos($_SERVER['HTTP_USER_AGENT'],"MSIE")) { session_cache_limiter('public'); } session_start(); See also: http://joseph.randomnetworks.com/archives/2004/10/01/ making-ie-accept-file-downloads http://php.net/manual/en/function.session-start.php

« previous php.notes (#180702) next »