Set default session cookie name.
This commit is contained in:
@ -20,10 +20,10 @@ async fn main() -> tide::Result<()> {
|
||||
async fn app_setup() -> tide::Server<()> {
|
||||
let mut app = tide::new();
|
||||
app.at("/").get(home);
|
||||
app.with(SessionMiddleware::new(
|
||||
MemoryStore::new(),
|
||||
b"361f953f-56ba-45e6-86ab-9efbf61b745d",
|
||||
));
|
||||
app.with(
|
||||
SessionMiddleware::new(MemoryStore::new(), b"361f953f-56ba-45e6-86ab-9efbf61b745d")
|
||||
.with_cookie_name("morethantext.sid"),
|
||||
);
|
||||
return app;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user