Session lost after client page jump

  node.js, question

RT, submit request in login page

clipboard.png
Corresponding routing processing

clipboard.png

I put the account information retrieved from the database inside into the session, then return the success status and a redirect url, and use it directly in the actionwindow.location.href = redirecurlTo jump, the server can receive a get request, butreq.sessionThe account information in is lost, Why is this? ? ?

Check whether to jump under the same domain name