Disable touch on certain paths
See original GitHub issueHi,
I have some paths that are pinged by the user with a certain interval, I don’t want to reset the session TTL when those paths are called. The paths dosen’t manipulate the session in any way, but still the touch function is used.
Am i missing something or is this a bug? When checking out the code in index.js it seems like it will always do a save/touch if cookieId and sessionId match.
session(
{
saveUninitialized: true,
unset: 'destroy',
resave: false, //https://www.npmjs.com/package/express-session#resave
rolling: true, //https://www.npmjs.com/package/express-session#rolling
proxy: true, //https://www.npmjs.com/package/express-session#proxy
name: "connect.sid",
store: new RedisStore(
{
host: config.redis.database.host,
port: config.redis.database.port,
db: config.redis.database.index,
pass: config.redis.database.password
}
),
secret: config.session.secret,
cookie:
{
maxAge: config.session.ttl,
secure: true
}
}
)
Issue Analytics
- State:
- Created 8 years ago
- Comments:10 (1 by maintainers)
Top Results From Across the Web
How do I disable the touch screen? - Microsoft Community
Clear the Use your finger as input device checkbox. Click OK to confirm and close the dialogue box. Copied from here.
Read more >Flutter disable touch on the entire screen - dart - Stack Overflow
I just want to lock the app so that it doesn't receive touch events. How can I do that? flutter · dart ·...
Read more >How to Disable Touchscreen Input on Your Phone (Android ...
Open Settings > Lock screen & security > Advanced > Screen pinning. In Android 9 Pie and above, this section is called Security...
Read more >Toggle to Disable touch input - Illustrator UserVoice
Illustrator needs an option to disable touch object manipulation. Currently, on a cintiq when I have a path selected and I attempt to...
Read more >How to Disable the Touchscreen on a Chromebook
Disable the Touchscreen on a Chromebook. ... Launch the Chrome browser and type the following path: ... Disable is selected by default.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@EmmEm , I hope you’re doing well. Did you ever figure out this requirement? I’d like to disable session.touch() as well for a logged in user so their session expires a certain time limit after logging in.
Hi, thanks for your answer.
But if the case is that I want the session to be picked up in that path. But don’t want the session touched?
The path is only accessible if the user is logged in.