Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

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

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

Baelroak opened this issue Jan 3, 2023 · 4 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.

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

No branches or pull requests

2 participants