http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8019

          Priority: P5 - low
 Change sponsored?: ---
            Bug ID: 8019
          Assignee: [email protected]
           Summary: Preserve language choice between Browser sessions
          Severity: major
    Classification: Unclassified
                OS: All
          Reporter: [email protected]
          Hardware: All
            Status: NEW
           Version: master
         Component: I18N/L10N
           Product: Koha

If I select a language in Staff client or Opac, I expect it to be persistent
between browser sessions.

This is not the case. Koha forgets the selection as soon as all Broser
instances are closed, and starts up the next session with the Browser's
preferred language.

This behaviour is due to the Cookie KohaOpacLanguage. I expires when the
browser is closed because no expiry date is set in
C4\Templates.pm, line 298 ff:

sub setlanguagecookie {
    my ( $query, $language, $uri ) = @_;
    my $cookie = $query->cookie(
        -name    => 'KohaOpacLanguage',
        -value   => $language,
        -expires => ''
    );
    print $query->redirect(
        -uri    => $uri,
        -cookie => $cookie
    );
}

Solution: Set -expires to a value like +3y (3 years from now)

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to