From 86b5edc2d448cb9c8e90b76b77b21b09d69d8527 Mon Sep 17 00:00:00 2001 From: ivan Date: Sat, 21 Jan 2012 04:01:54 +0000 Subject: rt 3.8.11 --- rt/lib/RT/Interface/Web.pm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'rt/lib/RT/Interface') diff --git a/rt/lib/RT/Interface/Web.pm b/rt/lib/RT/Interface/Web.pm index 959c80334..e4167e4cc 100644 --- a/rt/lib/RT/Interface/Web.pm +++ b/rt/lib/RT/Interface/Web.pm @@ -661,10 +661,11 @@ sub InstantiateNewSession { sub SendSessionCookie { my $cookie = CGI::Cookie->new( - -name => _SessionCookieName(), - -value => $HTML::Mason::Commands::session{_session_id}, - -path => RT->Config->Get('WebPath'), - -secure => ( RT->Config->Get('WebSecureCookies') ? 1 : 0 ) + -name => _SessionCookieName(), + -value => $HTML::Mason::Commands::session{_session_id}, + -path => RT->Config->Get('WebPath'), + -secure => ( RT->Config->Get('WebSecureCookies') ? 1 : 0 ), + -httponly => ( RT->Config->Get('WebHttpOnlyCookies') ? 1 : 0 ), ); $HTML::Mason::Commands::r->err_headers_out->{'Set-Cookie'} = $cookie->as_string; -- cgit v1.2.1