Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

make FORM-based authentication locale dependent  RSS feed

 
Jonh Smith
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is probably a no-brainer and i'm just missing it but...what is the common way to have container FORM based authentication provide different FORM content to the user depending on the language ? What language ? well i guess that if was talking about the browser language then javascript would do, right (please confirm this is the best approach) ?...but i'm talking about the language that should be selected explicitly by the user for interaction with the site before login in (kept in a non authenticated session, a cookie, or what ?)

What's the approach people commonly use for this problem ? Thank you.

 
Manish Singh
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Start a session when the user visit your site. Store his language preference in the session.
Appropriately replace the "username" "password" fields etc in particular language on the server.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!