I'm working on a personal project, recently included express-session and cookie-session. Though i'm having a problem when navigating to localhost:3000/, i get an error telling me that req.session.touch is not a function in express-session module.…
I am using session-file-store to maintain the sessions in my Node-Express app.
session-file-store generates a new file for every session. This will create lots of files on the server over time.
Is there any option / way to automatically delete the…
Following this example in Nextjs repository, I want to implement the CSRF protection (perhaps with csurf package), because I'm using a session ID cookie with express-session.
I tried setting csurf in my custom server and save the generated token in…
I always get the same error when I try to run my site on localhost with apache and self-signed ssl certificate. I have no idea why this error appears.
This is my session persistence, I don't know if there is a misstake, but I can't imagine....…
i am building a site that as two url ('/','/admin') session are conflicting
here is my app.js session code
app.use(logger('dev'));
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: false }));
app.use(cookieParser());
…
I have some Express middleware handling GET requests from my client side application to make subsequent requests to a separate API server that uses OAuth2 tokens, I am also using express-session for the storage of these tokens.
In my middleware that…
So I'm using express-session with a mongo store like so:
app.use(session({
secret: 'some secret here',
saveUninitialized: false,
resave: false,
store: new MongoStore({
url: 'http://someurlhere'
})
}));
I have some login middleware,…
I am working on an express server, that used as an API for 3 web apps (admin, clients, and miniAdmin).
The project is in staging for testing before production, but the problem is that the cookies not saving on safari on macs, and all the browsers on…
I am developing with typescript + express
i want use Redis to Session Storage and i installed redis, connect-redis
and i code below
import { createClient } from 'redis';
import * as RedisStore from 'connect-redis';
...
const client = createClient({
…
I have the following session setup...
setupSession(){
const session = {
secret: process.env.SESSION_SECRET,
cookie: {},
resave: false,
saveUninitialized: false,
};
this.app.use(expressSession(session));
}
I have the following…
I am trying to connect the sessions of express API and socket.IO server. But it seems both are storing their sessions separately. The socket.IO have the connections session while the express server has the user qid session. I am using express…
I got following Error Code: Property 'signin' does not exist on type 'Session & Partial'. (2339)
My App
src/index.ts
import "reflect-metadata";
import express = require("express");
import { Request, Response, NextFunction } from…
Environment: Express, express-session, Stripe
In the following simplified example when a user requests the home page express-session assigns the user a session cookie. Refreshing the page retains the same session id as does visiting the success or…
I've been trying to fix the new CORS issue thrown by Google Chrome via express-session but it doesn't seem to fix it. Specifically, this error:
A cookie associated with a cross-site resource at http://plant-app-test.herokuapp.com/ was set without…