Documentation ¶
Index ¶
- func ClearSession(response http.ResponseWriter)
- func GetSessionIdAndLoginTimeFromCookie(request *http.Request) (sessionId, loginTime string, err error)
- func GetSessionIdFromCookie(request *http.Request) (sessionId string, err error)
- func GetSessionIdFromRawCookie(cookieStr string) (sessionId string, err error)
- func SetSession(sessionId string, response http.ResponseWriter, cookieDomain string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearSession ¶
func ClearSession(response http.ResponseWriter)
ClearSession clears the cookie from http.Request
func GetSessionIdAndLoginTimeFromCookie ¶
func GetSessionIdAndLoginTimeFromCookie(request *http.Request) (sessionId, loginTime string, err error)
GetSessionIdAndLoginTimeFromCookie extracts sessionId and logged-in time from http.Request
func GetSessionIdFromCookie ¶
GetSessionIdFromCookie extracts sessionId from http.Request
func GetSessionIdFromRawCookie ¶
GetSessionIdFromRawCookie extracts sessionId from a raw cookie string
func SetSession ¶
func SetSession(sessionId string, response http.ResponseWriter, cookieDomain string) error
SetSession sets the cookie in the http.Response
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.