Xray core v1.8.18

This commit is contained in:
mhsanaei
2024-07-16 01:08:14 +02:00
parent 56159d9c52
commit f21c293693
5 changed files with 14 additions and 10 deletions

View File

@@ -17,6 +17,10 @@ func init() {
func SetLoginUser(c *gin.Context, user *model.User) error {
s := sessions.Default(c)
s.Options(sessions.Options{
Path: "/",
HttpOnly: true,
})
s.Set(loginUser, user)
return s.Save()
}