From 100a9e652e19929bdc869a80b21c39f16021fd11 Mon Sep 17 00:00:00 2001 From: Doug Bell Date: Tue, 23 Feb 2010 17:51:12 -0600 Subject: [PATCH] fix 11426: Logout page gets cached --- docs/changelog/7.x.x.txt | 1 + lib/WebGUI/Auth.pm | 3 +++ 2 files changed, 4 insertions(+) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 1910b8f50..f812d9f24 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -7,6 +7,7 @@ - fixed #11431: Prototypes cache attribute lost - fixed #11428: Dataform Date Field Problem - fixed #11409: 7.7.32 Breaks Code Editor + - fixed #11426: Logout page gets cached 7.8.12 - fixed #11285: Pasting HTML into Code Editor in IE diff --git a/lib/WebGUI/Auth.pm b/lib/WebGUI/Auth.pm index 222a59083..5158fd986 100644 --- a/lib/WebGUI/Auth.pm +++ b/lib/WebGUI/Auth.pm @@ -877,6 +877,9 @@ sub logout { my $error = qx($command); $self->session->errorHandler->warn($error) if $error; } + + # Do not allow caching of the logout page (to ensure the page gets requested) + $self->session->http->setCacheControl( "none" ); return undef; }