<%
if _SESSION["username"] ~= nil and _SESSION["currentpath"] ~= nil then
	--_SESSION["keeplive"] = 1
	rawset(_SESSION,"keeplive",1)
	SessionModule.save(_SESSION_ID)

	local nowdir = string.gsub(_SESSION["currentpath"],":{{","%[")
	nowdir = string.gsub(nowdir,"}}:","%]")
	c_AddConnection(_SESSION["username"],nowdir,_REMOTE_IP,_SESSION_ID,"KEEP ALIVE")
	c_AddWebLog("Keep alive",_SESSION_ID,DOMAIN_LOG_WEB_COMMAND)
end
%>