do cookies contain passwords??

Thread Solved

Join Date: Jun 2008
Posts: 34
Reputation: ravikiran032 has a little shameless behaviour in the past 
Solved Threads: 0
ravikiran032 ravikiran032 is offline Offline
Light Poster

do cookies contain passwords??

 
0
  #1
Aug 27th, 2008
i would like to know wheather cookies handles passwords.if so where they contain.
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 1,175
Reputation: stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light 
Solved Threads: 125
Featured Poster
stephen84s's Avatar
stephen84s stephen84s is offline Offline
Veteran Poster

Re: do cookies contain passwords??

 
0
  #2
Aug 27th, 2008
normally no, username maybe, but from a little I had read, some may contain your sessionId etc.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."

"How to ask questions the smart way ?"
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 14
Reputation: jack239 is an unknown quantity at this point 
Solved Threads: 1
jack239's Avatar
jack239 jack239 is offline Offline
Newbie Poster

Re: do cookies contain passwords??

 
0
  #3
Aug 27th, 2008
No cookies are stored in client's machine and since they are not a secure enough to hold confidential information so they do not contain password. However as a text you can put password in cookies but you shouldn't do so. Password once validated should not be stored in any medium like cookies or session.
Stuck in the middle of Java/PHP/Ajax development?

For free help on any technology and free articles visit http://www.techcubetalk.com
Reply With Quote Quick reply to this message  
Join Date: Oct 2004
Posts: 348
Reputation: paradox814 is an unknown quantity at this point 
Solved Threads: 4
paradox814's Avatar
paradox814 paradox814 is offline Offline
Posting Whiz

Re: do cookies contain passwords??

 
0
  #4
Aug 28th, 2008
Cookies should never contain passwords. You can have a cookie contain a session id. The session id can then point to a user in a database. From the database you can easily cross reference the user's password. By doing it this way you can have the session expire in the database after a few hours/days and also have the cookie to do the same.
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 213
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: do cookies contain passwords??

 
0
  #5
Aug 28th, 2008
they shouldn't, but that doesn't mean they don't...
It all depends on how the website was programmed.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC