Check if cookie exists
This commit is contained in:
parent
7b2a591902
commit
5b30d00838
|
|
@ -90,10 +90,10 @@ func (h *mainHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||||
}
|
}
|
||||||
|
|
||||||
http.SetCookie(w, newCookie)
|
http.SetCookie(w, newCookie)
|
||||||
|
} else {
|
||||||
|
sessionVar = c.Value
|
||||||
}
|
}
|
||||||
|
|
||||||
sessionVar = c.Value
|
|
||||||
|
|
||||||
fmt.Fprintln(w, "<h1>Ekster - Microsub server</h1>")
|
fmt.Fprintln(w, "<h1>Ekster - Microsub server</h1>")
|
||||||
fmt.Fprintln(w, `<p><a href="/settings">Settings</a></p>`)
|
fmt.Fprintln(w, `<p><a href="/settings">Settings</a></p>`)
|
||||||
fmt.Fprintln(w, `
|
fmt.Fprintln(w, `
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user