main: session regenerate bugfix, now will not destroy by default, if session seems expired
template editor up