Move session detection function to EDD_Session class
Merge pull request #2472 from ghost1227/issue/2441

Move session detection function to EDD_Session class