views:

25

answers:

1

Sorry... can anybody help me out? I'm a complete neewbiee to tomcat, but I have to set a cookie with the name 'lastlogin' with the actual timestamp as a value.

How am I supposed to do it?

Thanks a lot.

+1  A: 
httpServletResponse.addCookie(new Cookie('lastlogin', new Date().toString());
MasterGaurav

related questions