note 43856 deleted from function.session-decode by tomsommer
| From: | tomsommer@php.net | Date: | Tue, 06 Jul 2004 16:42:54 +0000 |
| Subject: | note 43856 deleted from function.session-decode by tomsommer | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-72773@lists.php.net to get a copy of this message | ||
Note Submitter: ian@iprcom.com
----
Trying to generate a PDF using session data will break with IE as it seems it can't cope with
having cookies set as well as downloading file data (no amount of fiddling with header settings
helped me). Using the program from "ned at wgtech dot com" below you can get the current
session without using session_start...
<?php
require_once("$DOCUMENT_ROOT/decodesession.php");
//
// workaround to get session without setting cookies
//
$_SESSION = decodesession(
file_get_contents(
session_save_path() . '/sess_' . $PHPSESSID
)
);
// new make PDF etc. with session data and output it...
?>