Structures

The following structures are available globally.

  • Defines the properties of an HTTP Cookie which will be used for a TypeSafeSession. It is valid for multiple TypeSafeSession types to use the same name (i.e. same cookie), provided they also use the same secret.

    Usage Example:

    static let sessionCookie = SessionCookie(name: "kitura-session-id", secret: "xyz789", secure: false, maxAge: 300)
    
    See more

    Declaration

    Swift

    public struct SessionCookie