web/modules/pxt/PXT/Request.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
New commits: commit ce7a2f530271da6e519369c45c9d962a377d6bc8 Author: Justin Sherrill jsherril@redhat.com Date: Fri May 29 15:45:24 2009 -0400
501784 - fixed issue with timed out logins that required cookie deletion to log in again
issue resolved around the fact that we are no longer setting the domain in the java stack, but still was in the perl coupled with the fact the expire time on the perl side was using the config value session_cookie_lifetime which was not set, resulting in a cookie that would only expire when the browser was closed
diff --git a/web/modules/pxt/PXT/Request.pm b/web/modules/pxt/PXT/Request.pm index 7dbc235..dd66184 100644 --- a/web/modules/pxt/PXT/Request.pm +++ b/web/modules/pxt/PXT/Request.pm @@ -437,7 +437,7 @@ sub cookie_jar { @secure = (-secure => 1) if $self->ssl_available;
- my $timeout = PXT::Config->get("session_cookie_lifetime"); + my $timeout = PXT::Config->get("session_database_lifetime");
my @expire; @expire = (-expires => $timeout) @@ -456,7 +456,8 @@ sub cookie_jar { my $session_cookie = new Apache2::Cookie $self->{apr}, -name => $self->session_cookie_name, -value => $self->session->key, - -domain => PXT::Config->get("base_domain"), + #-domain => PXT::Config->get("base_domain"), + # Don't set the cookie's domain, as it will cause issues since we aren't setting it in the java stack @expire, @secure, -path => "/";
spacewalk-commits@lists.fedorahosted.org