Liking cljdoc? Tell your friends :D

session-lib.core


am-i-logged-inclj

(am-i-logged-in request)

Check if user is logged in

Check if user is logged in
sourceraw docstring

am-i-logged-in-fnclj

(am-i-logged-in-fn request)

Shortcut function for result comparation of am-i-logged-in function if user is logged in

Shortcut function for result comparation of am-i-logged-in function
if user is logged in
sourceraw docstring

create-indexesclj

(create-indexes)

Create indexes for system to work

Create indexes for system to work
sourceraw docstring

delete-session-recordclj

(delete-session-record {cookies :cookie})

Delete session record from database

Delete session record from database
sourceraw docstring

get-accept-languageclj

(get-accept-language request)

Read accept-language header for selected language

Read accept-language header for selected language
sourceraw docstring

(get-cookie cookies cookie-name)

Read cookie from request cookies is string from cookie header from request cookie-name is cookie's name as keyword :cookie-name

Read cookie from request
cookies is string from cookie header from request
cookie-name is cookie's name as keyword :cookie-name
sourceraw docstring

get-pass-for-email-usernameclj

(get-pass-for-email-username email-username password & [accept-language])

Get password for supplied email

Get password for supplied email
sourceraw docstring

login-authenticationclj

(login-authentication
  {user-agent :user-agent
   accept-language :accept-language
   {email-username :email password :password remember-me :remember-me} :body})

Login authentication

Login authentication
sourceraw docstring

logoutclj

(logout request)

Logout user from system

Logout user from system
sourceraw docstring

long-session-timeout-numclj

source

refresh-sessionclj

(refresh-session {cookie :cookie user-agent :user-agent})

Refreash existing session uuid for long or short session timeout

Refreash existing session uuid for long or short session timeout
sourceraw docstring

(session-cookie-string cookie-name
                       user-id
                       username
                       session-uuid
                       timeout-in-seconds
                       user-agent
                       &
                       [is-secure-on is-httponly-on is-persistent])

Format session cookie with name, uuid, exparation datetime and max-age seconds

Format session cookie with name, uuid, exparation datetime and max-age seconds
sourceraw docstring

(session-cookie-string-fn remember-me user uuid user-agent)

Format session cookie

Format session cookie
sourceraw docstring

session-timeoutclj

(session-timeout seconds)

Return current date and time in particular format adding up seconds

Return current date and time in particular format
adding up seconds
sourceraw docstring

session-timeout-numclj

source

set-session-cookiesclj

(set-session-cookies request response)

Set session cookies

Set session cookies
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close