[phplib] Cookie-sessions and download From: Bernhard Ostheimer (bernhard.ostheimer <email protected>)
Date: 08/26/00

Hi,

I'm using PHPlib V7.2b with sessions in cookie mode. It's all working fine
except the following: I tried to code a download script which allows
auth'ed users to download a file like this:
<?php
page_open(...);
[...some DB-Querys...]
$realfile["size"] =  <email protected>($realfile["pathname"]);
header("Content-type: ".$realfile["mimetype"]);
header("Content-length: ".$realfile["size"]);
header("Content-description: File_for_you");
header("Content-disposition: inline; filename=\"".$realfile["name"]."\"");
 <email protected>($realfile["pathname"]);
page_close();
?>
It's working correctly, if I don't call the page_open/page_close-functions.
It's also working, if the file is a gif/jpg using the page_*-funcs. But
it's not working using the page_*-stuff with other files. Looks like the
Browsers don't like cookies beeing set by a zip/doc/xls/... file ?!
Do you have any workarounds for this case?

TIA,
Bernhard

--
Bernhard Ostheimer

E-Mail: Bernhard.Ostheimer <email protected>

--------------------------------------------------------------------- To unsubscribe, e-mail: phplib-unsubscribe <email protected> For additional commands, e-mail: phplib-help <email protected>