attempting to write own session handler [ci skip]