Documentation
¶
Overview ¶
Package sessiondata holds the session keys and helpers shared by the admin area and the public handler (which needs to recognize logged-in editors for in-place editing).
Index ¶
Constants ¶
View Source
const ( KeyUserID = "cmsUserID" KeyCSRF = "cmsCSRFToken" KeyFlash = "cmsFlash" )
Variables ¶
This section is empty.
Functions ¶
func EnsureCSRF ¶
EnsureCSRF returns the session's CSRF token, generating and storing one if the session doesn't have one yet.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.