depreciate ajax logout