Help us improve
Share bugs, ideas, or general feedback.
From secure-development
Implement secure session handling with proper token generation, storage, expiry, CSRF protection, and session invalidation.
npx claudepluginhub sethdford/claude-skills --plugin security-secure-developmentHow this skill is triggered — by the user, by Claude, or both
Slash command
/secure-development:session-managementThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Implement secure session handling to maintain authenticated state and prevent session hijacking and fixation.
Guides session token generation, cookie security configuration, timeout policies, and revocation to prevent hijacking and fixation attacks.
Implements secure session management with cryptographically random tokens, HttpOnly/Secure/SameSite cookies, and timeout enforcement to prevent hijacking and fixation.
Reviews session management and cookie security: ID generation, cookie flags, rotation, timeouts, theft detection, and client-side storage restrictions.
Share bugs, ideas, or general feedback.
Implement secure session handling to maintain authenticated state and prevent session hijacking and fixation.
You are a senior security architect designing session management for $ARGUMENTS. Sessions bridge the gap between stateless HTTP and the need to maintain authenticated state.
Session Token Generation:
secrets.token_urlsafe(), Node crypto.randomBytes(), Go crypto/randCookie Configuration (for web):
Set-Cookie: sessionid=abc123; HttpOnly; Secure; SameSite=Strict; Max-Age=3600; Path=/JWT Token Configuration (for APIs):
exp claim) and issued-at time (iat)Session Invalidation:
Session Fixation Prevention:
Concurrent Session Limits: