aboutsummaryrefslogtreecommitdiff
path: root/session/constants.go
diff options
context:
space:
mode:
authorBobby <[email protected]>2026-03-07 14:25:54 +0530
committerBobby <[email protected]>2026-03-07 14:25:54 +0530
commit41926c10ea2e8496ce4b528262f5047ccbe6f155 (patch)
tree67ff5a27bb50faec368cf7ef38a1b1f2866459dd /session/constants.go
parented2a033d7c08e448f5c6fd035e2de8f51431b597 (diff)
downloaddove-41926c10ea2e8496ce4b528262f5047ccbe6f155.tar.xz
dove-41926c10ea2e8496ce4b528262f5047ccbe6f155.zip
Implement authentication system with login/logout functionality and session management
Diffstat (limited to 'session/constants.go')
-rw-r--r--session/constants.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/session/constants.go b/session/constants.go
new file mode 100644
index 0000000..d6a7f69
--- /dev/null
+++ b/session/constants.go
@@ -0,0 +1,10 @@
+package session
+
+import "time"
+
+const (
+ LOG_PREFIX = "Session"
+ SESSION_COOKIE_NAME = "dove_session"
+ SESSION_COOKIE_SAME_SITE = "Lax"
+ SESSION_EXPIRATION = 24 * time.Hour
+)