fixes library/session.phphttps://github.com/Zidisha/zidisha/issues/355