Structurevapor 4.114.1Vapor
SessionsConfiguration
Configuration options for sessions.
struct SessionsConfiguration
Configuration options for sessions.
struct SessionsConfiguration
import Vapor
Vapor is a framework for building server applications, APIs and websites in Swift. It provides a safe, performant and scalable foundation for building large complex backends.
protocol Sendable
@preconcurrency init(cookieName: String, cookieFactory: @escaping (SessionID) -> HTTPCookies.Value)
Create a new SessionsConfig
with the supplied cookie factory.
static func `default`() -> SessionsConfiguration
SessionsConfig
with basic cookie factory.
var cookieFactory: (SessionID) -> HTTPCookies.Value
Creates a new HTTPCookieValue
for the supplied value String
.
var cookieName: String
Name of HTTP cookie, used as a key for the cookie value.