Enumerations
The following enumerations are available globally.
-
The parameters for configuring the cookies used to send the session IDs to the clients.
Usage Example:
let session = Session(secret: "Something very secret", cookie: [.name("mySessionId")]) router.all(middleware: session)
In the example, an instance of
See moreSession
is created with a custom value for theCookieParameter
name.Declaration
Swift
public enum CookieParameter