cookie

package
v0.19.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 4, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package cookie provides shared cookie-related constants.

Index

Constants

View Source
const (
	// NameSecure is the cookie name with __Host- prefix for HTTPS security.
	// requires HTTPS, secure flag, and path="/".
	NameSecure = "__Host-stash-auth"

	// NameFallback is the cookie name for HTTP/development environments.
	NameFallback = "stash-auth"
)

Variables

View Source
var SessionCookieNames = []string{NameSecure, NameFallback}

SessionCookieNames defines cookie names for session authentication. Order matters: __Host- prefix is tried first (for HTTPS security), then fallback. __Host- prefix requires HTTPS, secure, path=/ (preferred for production). Fallback cookie name works on HTTP for development.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL