Fixed session saving and getFriends request