Unable to set session cookies

I’m using session cookies to store user login id with apollo-server-express.
After logging in the user, no session cookie is saved in the browser, on account of which authentication always fails.
However, on the server, it does show that the cookie has been created and stored in the mongodb cloud.
I’ve followed all the steps previously mentioned.
Please help with this issue.