EZP-20426 - Added session support since legacy scripts can use sessions (don't ask why)