Part 2 of handling session

ok again with this 
as mentionned will retrieve the unnecessary code that let the app work properly