Servlet-handling login cookies -


imagine user in java servlet program signs personal information. if wants re-use can log in username , password submitted before. want know how going check cookies stored in browser in order see if specific username followed specific password. wondering if cookies stored in same row added or stored randomly.

i know can check them writing this:

for(int = 0; i< cookies.length; i++) {       cookie thiscookie = cookies[i];       if (thiscookie.getname().equals("usn"))    //... 

but there seems problem,as there number of usernames , passwords stored in browser linking between 2 of them specific.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -