|
local session = require("session")
|
|
local config = require("config")
|
|
|
|
local function logout(req)
|
|
local author, authorid = session.get(req)
|
|
session.finish(authorid)
|
|
http_response_header(req,"Location","https://" .. config.domain)
|
|
http_response(req,303,"")
|
|
end
|
|
|
|
return logout
|