Bug 18975: Retrieve up-to-date CGISESSID when just logged in
If a user is asked to login before sending a card, the wrong (old) CGISESSID cookie is used. We need to retrieve the one that has just been created. This will certainly need more work, I guess other scripts are affected too. Signed-off-by: Claire Gravely <claire.gravely@bsz-bw.de> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
549b8fe787
commit
208f102125
1 changed files with 2 additions and 1 deletions
|
@ -192,13 +192,14 @@ END_OF_BODY
|
|||
output_html_with_http_headers $query, $cookie, $template->output;
|
||||
}
|
||||
else {
|
||||
my $new_session_id = $cookie->value;
|
||||
$template->param(
|
||||
bib_list => $bib_list,
|
||||
url => "/cgi-bin/koha/opac-sendbasket.pl",
|
||||
suggestion => C4::Context->preference("suggestion"),
|
||||
virtualshelves => C4::Context->preference("virtualshelves"),
|
||||
csrf_token => Koha::Token->new->generate_csrf(
|
||||
{ session_id => scalar $query->cookie('CGISESSID'), } ),
|
||||
{ session_id => $new_session_id, } ),
|
||||
);
|
||||
output_html_with_http_headers $query, $cookie, $template->output;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue