Make session class Windows compatible

Fixes strict error of doing an end + explode on BASE.
Also, make Windows compatible by using DIRECTORY_SEPARATOR instead
of '/'