question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Disable touch on certain paths

See original GitHub issue

Hi,

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:closed
  • Created 8 years ago
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
sowmitranallacommented, Aug 8, 2017

@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.

4reactions
EmmEmcommented, Mar 15, 2016

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found