skip to Main Content

Symfony SessionHandler Warning – PHP

when I try to run a especifical project on my computer, symfony show me this error: Warning: SessionHandler::read(): open(/opt/alt/php74/var/lib/php/sessionsess_rt7p5374uhjagiperqv83aej38, O_RDWR) failed: No such file or directory (2) I'm use symfony 5.4 and PHP 8

VIEW QUESTION

Mongodb – Unable to get document using document.findOne()

I tried to get a document using document.findOne() but it's value is showing undefined . Here is my code `app.post("/studentlogin",(req,res)=> { let password; console.log("login page"); bcrypt.hash(req.body.password,saltRounds,(err,hash)=> { const user= Student.findOne({srno:req.body.srno}); console.log(user.srno); if(req.body.srno==user.srno && hash==user.password) { session=req.username; session.userid=req.body.srno; res.redirect("/"); } else{…

VIEW QUESTION

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
Back To Top
Search