"Can I have a complete code for secure login using session?"
"Did you tried anything?"
"No"
So why would you expect us to do your work for you?
No. That is not what this site is about - we help people who have problems, not support people who are either too lazy of too incompetent to do their own work.