renamed sessions.js
change method name
add authorize method, change index