session method created for client logging and message changes in rest of the files.