skip to Main Content

Redis – Session ID changes although resave has been set to true (the client doesn't take the new expiration date into account)

I'm using NodeJS an express session handling with Redis. Here is the interesting part: let session = require('express-session') let cookieParser = require('cookie-parser') let Redis = require('ioredis'); let clientRedis = new Redis(); let RedisStore = require('connect-redis')(session); const SESSIONSECRET = require(config.get('app.secretsession')).secret; app.use(cookieParser(SESSIONSECRET));…

VIEW QUESTION

Mongodb – mongoose how to update an user profile with id

I created an simple CRUD operation in nodejs and mongoose. Updating an user using RESTAPI. an error message in Insomnia Error: Server returned nothing (no headers, no data) URL http://localhost:1337/api/users/update/63ab9b716065482273e58b75 @PUT METHOD router.put("/update/:id",updateUser) const updateUser = async (req,res,next) => {…

VIEW QUESTION
Back To Top
Search