Documentation
¶
Overview ¶
Package session provides session management utilities for the 3x-ui web panel. It handles user authentication state, login sessions, and session storage using Gin sessions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearSession ¶
ClearSession removes all session data and invalidates the session. This effectively logs out the user and clears any stored session information.
func GetLoginUser ¶
GetLoginUser retrieves the authenticated user from the session. Returns nil if no user is logged in or if the session data is invalid.
func IsLogin ¶
IsLogin checks if a user is currently authenticated in the session. Returns true if a valid user session exists, false otherwise.
func SetLoginUser ¶
SetLoginUser stores the authenticated user in the session. The user object is serialized and stored for subsequent requests.
Types ¶
This section is empty.