Set session cookie name
This commit is contained in:
1 parent
a590c96d0b
commit
200942b2a2
1 file changed
+1
-1
@@ -134,7 +134,7 @@ func createSessionCookie(app *app.App, w http.ResponseWriter, username string) (
|
|||||||
|
|
||||||
// Create session cookie, containing token
|
// Create session cookie, containing token
|
||||||
cookie := &http.Cookie{
|
cookie := &http.Cookie{
|
||||||
Name: "",
|
Name: "session",
|
||||||
Value: token,
|
Value: token,
|
||||||
Path: "/",
|
Path: "/",
|
||||||
MaxAge: 86400,
|
MaxAge: 86400,
|
||||||
|
|||||||
Reference in new issue
Block a user