Raj_donet
asked on
What is the best way(Session/cookies) save login credentials like login name, role etc.?
What is the best way(Session/cookies) save login credentials like login name, role etc.?
ASKER
When user login into the website, I want to save the username in a session, so that I can user the sessions object as pass check the credentials, later when get the role and save in session and retain the username and object through multiple pages. I usually use Session to do this. but I want to know if there is any specific advantage of using cookie over session. Which one is more secure?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks
Give me some kind of user story to go along with this. Your question is way too vague.