Beware of custom cookies

Cookies are meant to store user-related data on the browser.

The recommended method of handling user data is not with a Cookie, but with an HttpSession :

If you decide to use Cookies directly, then care should be exercised that : Note as well that the Open Web App Security Project says that 'Remember Me' cookies are a security risk.

See Also :
Manage sessions closely
Would you use this technique?
Yes   No   Undecided   
© 2010 Hirondelle Systems | Source Code | Contact | License | Quotes | RSS
Individual code snippets can be used under this BSD license - Last updated on June 5, 2010.
Over 150,000 unique IPs last month - Built with WEB4J.
- In Memoriam : Bill Dirani -