Issue: 962 : Making session key unique

I have made few changes to ensure uniqueness of session key. I am not
well from past three days, so please check if there is any mistake.
Thanks.