Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

cookie/session not being stored on client in 5.1 #403

Open
Baelroak opened this issue Jan 3, 2023 · 5 comments
Open

cookie/session not being stored on client in 5.1 #403

Baelroak opened this issue Jan 3, 2023 · 5 comments

Comments

@Baelroak
Copy link

Baelroak commented Jan 3, 2023

Using express-session in node.js for the backend, with the same logic in 5.0 and 5.1 we get different results, req.session is undefined because the session is not being stored on the client. I have seen someone else post about it on the unreal marketplace for the plugin

The only difference here is 5.0 and 5.1 engine.

This is the other post from the UE market I read
"Hi I'm not sure this is the plugin's problem. But I want to get your advise or answer. After UE 5.1 update, in my project, it seems it doesn't keep token or session(I think I don't know an exact word) after login. I made a file download process on the project. That is only for logged in users. Of course, this system uses this VaRest plugin. I can log in(server responses correctly), but I'm not able to download files. The server tells me I'm not logged in.

I have same project as UE 5.0 version. It works fine.

So, I don't know how to fix this. Please help me."

@Baelroak
Copy link
Author

Baelroak commented Jan 3, 2023

picture of the same backend and blueprint logic in 5.03 and 5.1 with different results,

as you see the 5.03 client is on the left and has a cookie the 5.1 client does not

image

@Baelroak Baelroak changed the title session not being stored on client in 5.1 cookie/session not being stored on client in 5.1 Jan 3, 2023
@Baelroak
Copy link
Author

Baelroak commented Jan 4, 2023

from the response object this appears to not be setting the cookie, it has the same response in 5.03 and 5.1 but console.log the req object there is only cookie in 5.03

image

@DezarM
Copy link

DezarM commented Feb 5, 2023

I have the same problem.

@Baelroak
Copy link
Author

Baelroak commented Feb 7, 2023

I have the same problem.

seems to be an engine bug I made a unreal bug report already.

@xcibe95x
Copy link

xcibe95x commented Oct 21, 2024

Did you ever resolve? seems they ignored the issue, i migrated to UE5.4 and now have the same issue.

EDIT: Meanwhile i tried resubmitting the issue to unreal hoping it gets addressed, not sure either if it is VaRest.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants