# MEAN.io Session Cookie parameters — Liran Tal

How to configure the session cookie parameters in MEAN.io

Canonical: https://lirantal.com/blog/2014-06-13

![Cover artwork for MEAN.io Session Cookie parameters](/_astro/photo-1468956398224-6d6f66e22c35.BePqp3CW_Zj88Tk.jpg)

[Continuing with my contribution](https://github.com/linnovate/mean/commits?author=lirantal) to the [MEAN.io](http://mean.io/#!/) ([MongoDB](http://www.mongodb.org/), [ExpressJS](http://expressjs.com/), [AngularJS](https://angularjs.org/), and [NodeJS](http://nodejs.org/)) technology stack (or should we say framework by now with the progress it’s been making?) [I’ve submitted](https://github.com/linnovate/mean/commit/532dea922c95403c97be317b8f4fc48d76c9008d) another [pull request](https://help.github.com/articles/using-pull-requests) to allow setting up MEAN.io session cookie parameters. It is often required for enterprise applications to set session cookie parameters and not rely on Express’s defaults. These parameters are for example the cookie expiration time, and whether the session cookie will require the website to run in an SSL-enabled environment.

[This PR](https://github.com/linnovate/mean/commit/532dea922c95403c97be317b8f4fc48d76c9008d) adds support for default parameters on the cookie session and allows developers to set them as required globally, or per environment (development, testing, and production). Description on the session cookie parameters themselves have been added as well to make this easy to configure.

[![adding support for configurable session cookie parameters for express · 532dea9 · linnovate mean](https://web.archive.org/web/20140625172558im_/http://enginx.com/wp-content/uploads/2014/06/adding-support-for-configurable-session-cookie-parameters-for-express-%C2%B7-532dea9-%C2%B7-linnovate-mean.png)](http://enginx.com/wp-content/uploads/2014/06/adding-support-for-configurable-session-cookie-parameters-for-express-%C2%B7-532dea9-%C2%B7-linnovate-mean.png)

## More writing

[All writing](/blog)

*   Sep 5, 2026

    ### [Self-Hosting Hermes Agent with Matrix E2EE on Proxmox](/blog/self-host-hermes-agent-matrix-e2ee-proxmox)

*   Aug 2, 2026

    ### [The Practical Second Brain: Building an LLM-Operated Markdown Knowledge Graph](/blog/practical-second-brain-llm-markdown-knowledge-graph)

*   Aug 1, 2026

    ### [Building a Second Brain with LLMs and AI Agents](/blog/building-second-brain-llms-ai-agents)


* * *

Liran Tal is the author of the book [Node.js Secure Coding: Defending Against Command Injection Vulnerabilities](https://www.nodejs-security.com/)

[Start Building Secure Node.js Applications](https://www.nodejs-security.com/)

 [![](/_astro/nodejs-secure-coding-book-3d-style.DiTWpzFs_Z3c7s1.png)](https://www.nodejs-security.com/)
