coldfusion - Cannot get onSession Start to fire in Mura -
i have script :
<cfscript> gf = createobject('component','com.general'); gf.checkipblocked(); </cfscript> that want fire onsessionstart.
i added onsessionstart /siteid/includes/themes/mytheme/eventhandler.cfc. session start never fires. know there managing sessions because of open admin, login close browser, re-open forced login again.
if set session variable close browser , and session.testvar never goes away , seems hold initial value long time.
i not trying manage mura users or trying set session variable first time in "session". in typical application.cfc easy.
any insight appreciated.
unfortunately, that's bug. however, 1 thing keep in mind onsitesessionstart unreliable since fires when siteid defined within request. example, if go admin , asked login session have started , there have been no siteid.
for try using onsiterequeststart param variable instead.
function onsiterequeststart($){ param name="session.ipchecked" default=false; if(!session.ipchecked){ var gf = createobject('component','com.general'); gf.checkipblocked(); session.ipchecked=true; } } in regard our documentation have three mura 6 books available both printed , digital downloads lulu
and working create systematic way post contents of books on our support site hoping complete muracon on 9/30. of our documentation stay update , in sync.
Comments
Post a Comment