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 moreSessionis created with a custom value for theCookieParametername.Declaration
Swift
public enum CookieParameter
View on GitHub
Enumerations Reference