Skip to content
I

iron-session

Secure, stateless, and cookie-based session library

by vvoOpen source

#413in UI Libraries
0In stores

Description

iron-session is a secure, stateless, cookie-based session library for JavaScript, made for Next.js and other frameworks. Session data is sto…

Highlights

  • Signed and encrypted cookie sessions
  • Stateless, with no network call to decode a session
  • Works with Next.js and other JavaScript frameworks
  • Version 9 is ESM-only and needs Node 22.13+

Ratings & Reviews

No ratings yet

Be the first to rate iron-session.

People also visit

N

NextAuth

Authentication for Next.js

Developer Tools
Launch
C

Cookies

Load and save cookies within your Web application

Utilities
Launch
N

nextjs-authentication

Provides authentication implementation patterns for Next.js 15+ App Router

AI Skills
Get
C

clerk-nextjs-patterns

Advanced Next.js patterns for authentication, middleware, Server Actions

AI Skills
Get
B

Brownies

Tastier cookies, local, session, and db storage in a tiny package

Utilities
Launch
N

nextjs-supabase-auth

Expert integration of Supabase Auth with Next.js App Router

AI Skills
Get

iron-session FAQ

What is iron-session?

A secure, stateless, cookie-based session library for JavaScript, used with Next.js and other frameworks.

How does it store sessions?

In signed and encrypted cookies, which the server decodes statelessly without a database or a network call.

Which Node.js version does v9 need?

Node 22.13 or later. v9 is ESM-only, and the README says to stay on v8 if you are on an older Node.

Where is the source?

On GitHub at vvo/iron-session.

What are the best iron-session alternatives?

Popular alternatives to iron-session include @deemlol/next-icons, @daveyplate/better-auth-ui and react-oidc-context. See all iron-session alternatives

Developer Stuff

Badges