fix (session) correct register lock (refs #4355)

session are saved after register
style (version) avoid unnecessary register (refs #4355)
style (report) encode url (refs #4355)