note 43856 added to function.session-decode

From: Date: Tue, 06 Jul 2004 15:52:48 +0000
Subject: note 43856 added to function.session-decode
Groups: php.notes 
Request: Send a blank email to php-notes+get-72768@lists.php.net to get a copy of this message
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... ?> ---- Manual Page -- http://www.php.net/manual/en/function.session-decode.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+43856 Delete -- http://master.php.net/manage/user-notes.php?action=delete+43856&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+43856&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#72768) next »