Dec 01

You can store the username of a visitor to your site in a cookie stored on their computer. You send the cookie with the http response, for example when they login.


Cookie cookie= new Cookie("username", username);  
cookie.setMaxAge(3600);  
response.addCookie(cookie);  

written by objects \\ tags: , ,