- # Pushing the cookie back
- $newsearchcookie = $cgi->cookie(
- -name => 'KohaOpacRecentSearches',
- # We uri_escape the whole freezed structure so we're sure we won't have any encoding problems
- -value => uri_escape( freeze(\@recentSearches) ),
- -expires => ''
- );
- $cookie = [$cookie, $newsearchcookie];