{"action":"created","issue":{"url":"https://api.github.com/repos/expressjs/session/issues/210","labels_url":"https://api.github.com/repos/expressjs/session/issues/210/labels{/name}","comments_url":"https://api.github.com/repos/expressjs/session/issues/210/comments","events_url":"https://api.github.com/repos/expressjs/session/issues/210/events","html_url":"https://github.com/expressjs/session/issues/210","id":106763574,"number":210,"title":"Prevent Session Extension for Certain Requests","user":{"login":"diginfo","id":6010010,"avatar_url":"https://avatars.githubusercontent.com/u/6010010?v=3","gravatar_id":"","url":"https://api.github.com/users/diginfo","html_url":"https://github.com/diginfo","followers_url":"https://api.github.com/users/diginfo/followers","following_url":"https://api.github.com/users/diginfo/following{/other_user}","gists_url":"https://api.github.com/users/diginfo/gists{/gist_id}","starred_url":"https://api.github.com/users/diginfo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diginfo/subscriptions","organizations_url":"https://api.github.com/users/diginfo/orgs","repos_url":"https://api.github.com/users/diginfo/repos","events_url":"https://api.github.com/users/diginfo/events{/privacy}","received_events_url":"https://api.github.com/users/diginfo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/expressjs/session/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":{"login":"dougwilson","id":67512,"avatar_url":"https://avatars.githubusercontent.com/u/67512?v=3","gravatar_id":"","url":"https://api.github.com/users/dougwilson","html_url":"https://github.com/dougwilson","followers_url":"https://api.github.com/users/dougwilson/followers","following_url":"https://api.github.com/users/dougwilson/following{/other_user}","gists_url":"https://api.github.com/users/dougwilson/gists{/gist_id}","starred_url":"https://api.github.com/users/dougwilson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougwilson/subscriptions","organizations_url":"https://api.github.com/users/dougwilson/orgs","repos_url":"https://api.github.com/users/dougwilson/repos","events_url":"https://api.github.com/users/dougwilson/events{/privacy}","received_events_url":"https://api.github.com/users/dougwilson/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-09-16T12:30:35Z","updated_at":"2015-09-17T23:40:36Z","closed_at":null,"body":"There are certain requests that I do not want express to extend the session expiry date for, like background ajax pings that are sent from the client browser to see whether the server is alive and if the session is still open.\r\n\r\n    app.use(express.session({\r\n      rolling: false,\r\n      store: app.conf.sessionStore,\r\n      secret: 'mysecret', \r\n      cookie:{\r\n        maxAge: 60000 * 30\r\n      }\r\n    }));\r\n\r\n\r\n    if(req.query.ping == 'y'){\r\n     // Don't extend session max-age\r\n    }\r\n\r\nIs this possible ? - I have looked through the documentation  and I cannot seem to find anything useful, I have also googled this and don't get any useful hits ?\r\n"},"comment":{"url":"https://api.github.com/repos/expressjs/session/issues/comments/141282251","html_url":"https://github.com/expressjs/session/issues/210#issuecomment-141282251","issue_url":"https://api.github.com/repos/expressjs/session/issues/210","id":141282251,"user":{"login":"diginfo","id":6010010,"avatar_url":"https://avatars.githubusercontent.com/u/6010010?v=3","gravatar_id":"","url":"https://api.github.com/users/diginfo","html_url":"https://github.com/diginfo","followers_url":"https://api.github.com/users/diginfo/followers","following_url":"https://api.github.com/users/diginfo/following{/other_user}","gists_url":"https://api.github.com/users/diginfo/gists{/gist_id}","starred_url":"https://api.github.com/users/diginfo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diginfo/subscriptions","organizations_url":"https://api.github.com/users/diginfo/orgs","repos_url":"https://api.github.com/users/diginfo/repos","events_url":"https://api.github.com/users/diginfo/events{/privacy}","received_events_url":"https://api.github.com/users/diginfo/received_events","type":"User","site_admin":false},"created_at":"2015-09-17T23:40:36Z","updated_at":"2015-09-17T23:40:36Z","body":"How can I achieve this ?"}}