• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to remember the user's name when second time login

 
Jian Zhang
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know I should do this by cookie, but I tried, and set the max age of cookie, but when I use the cookie and set the path as request.getContextPath() to set the cookies path(i am using my laptop to do server and client), It throws an error.
I just want to implement the username diplayed next time the user logs in just like what this javaranch does. Anybody help me? Thanks a lot.
I am suffering about this for a couple of days already...
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
show us your code and the exact error and we may be able to help you along.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!