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

Unsupported operand types: IlluminateSupportCarbon – IlluminateSupportCarbon – Laravel

I have made this method for sending a temporary code to user's mobile phone number for verifying his account: public function signInWithToken() { if(Session::has('nextStep') && Session::has('foundUser')) { $user = User::where('usr_mobile_phone', Session::get('foundUser'))->first(); if(Session::has('codeSent')){ $nowTime = now(); $sentTime = Session::get('codeSent'); if($nowTime >=…

VIEW QUESTION
Back To Top
Search