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 multipleTypeSafeSession
types to use the same name (i.e. same cookie), provided they also use the same secret.Usage Example:
See morestatic let sessionCookie = SessionCookie(name: "kitura-session-id", secret: "xyz789", secure: false, maxAge: 300)
Declaration
Swift
public struct SessionCookie