Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

remember online user id/pwd

 
mark I thomas
Ranch Hand
Posts: 86
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Some web site offers feature of "remember user id/pwd" so next time when you access the same web site, it automatically pre fill out the user id field and or password field for you. How is this kind feature implemented ? I am not talking about the auto-complete function here.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65535
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cookies
 
mark I thomas
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:Cookies


Should cookies be generated directly on client side ? or generated from server side and pass to client in response ?

Could you give ay helpful link for sample ?

thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65535
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would assume that you're handling login on the server, so it'd make the most sense to generate the cookie after the user has been authenticated. You are also protecting traffic with SSL, right?
 
mark I thomas
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:I would assume that you're handling login on the server, so it'd make the most sense to generate the cookie after the user has been authenticated. You are also protecting traffic with SSL, right?


yes, login should be handled on server after authenticating. OK, so I get it, should create cookies on server.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!