From 06f066164f60fe0babbc7a480e6319a0702e0c46 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 21 Jun 2009 15:09:32 -0700 Subject: Add Session::abort_save() to Kohana. Filed upstream as: http://dev.kohanaphp.com/issues/1801 --- modules/gallery/controllers/file_proxy.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules/gallery/controllers/file_proxy.php') diff --git a/modules/gallery/controllers/file_proxy.php b/modules/gallery/controllers/file_proxy.php index 1f885e53..0d64bcd9 100644 --- a/modules/gallery/controllers/file_proxy.php +++ b/modules/gallery/controllers/file_proxy.php @@ -112,6 +112,9 @@ class File_Proxy_Controller extends Controller { kohana::show_404(); } + // We don't need to save the session for this request + Session::abort_save(); + // Dump out the image header("Content-Type: $item->mime_type"); Kohana::close_buffers(false); -- cgit v1.2.3