Mar
21
answered Can this mongoDB action be made more efficient?
Mar
20
revised Can this mongoDB action be made more efficient?
delete > remove
Mar
10
awarded Nice Answer
Mar
4
awarded Popular Question
Feb
25
awarded Yearling
Feb
22
awarded Caucus
Feb
21
accepted How to check if an object exists when passing variables with jade
Feb
21
comment How to check if an object exists when passing variables with jade
Ah ha. Sigh, I must have tried 5 different variations of conditional statements but all with the check outside the script tag, using jade, not inside like this. Thank you.
Feb
21
asked How to check if an object exists when passing variables with jade
Jan
26
awarded Benefactor
Jan
24
comment Prevent Expressjs from creating a session when requests contain an authorization header?
Thanks, your suggestion of using a separate subdomain makes a lot of sense; I suspect we will end up doing this and your link will be useful then.
Jan
24
comment Prevent Expressjs from creating a session when requests contain an authorization header?
Thank you. This is exactly what I was looking for.
Jan
24
accepted Prevent Expressjs from creating a session when requests contain an authorization header?
Jan
23
awarded Promoter
Jan
22
revised Prevent Expressjs from creating a session when requests contain an authorization header?
More detail
Jan
22
comment Prevent Expressjs from creating a session when requests contain an authorization header?
Using this approach of checking each req, one option is to use req.session.destroy(); to remove the session right after Express has set it. I'd rather prevent Express from setting it in the first place though.
Jan
22
revised Prevent Expressjs from creating a session when requests contain an authorization header?
Clarification
Jan
22
comment Prevent Expressjs from creating a session when requests contain an authorization header?
To be fair, you've directly answered the question but this won't work. It does successfully remove the set-cookie header but that's not my real problem. My real problem is all the sess keys being created in my memory store (Redis), one per request - this quickly eats memory. I'll update the question to reflect this.
Jan
21
revised Prevent Expressjs from creating a session when requests contain an authorization header?
Grammar police
Jan
21
asked Prevent Expressjs from creating a session when requests contain an authorization header?
1 2 3 4 5