• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

window.open(), window title bar, and the POST method

 
Ranch Hand
Posts: 434
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am opening a new window when someone logs in. The problem is the user name and password are appearing in the browser title bar because its doing a GET. How can I prevent the user accout info from appearing in the title bar? A POST perhaps?

Code...

<form action="" method="post" name="loginForm" onsubmit="submitLoginForm();return false;">


STANDARD_SCALE_DISPLAY_WIDTH = 1280;
STANDARD_SCALE_DISPLAY_HEIGHT =1024;
function openPopup(userName, pwd){
ref = window.open("popup.jsp?username="
+ userName +
"&password=" +
pwd,'P20Web',
"'left=0,toolbar=0,menubar=0,resizable=1,location=0,status=0,scrollbars=1,top=1"
+ ", width=" + STANDARD_SCALE_DISPLAY_WIDTH
+ ", height=" + STANDARD_SCALE_DISPLAY_HEIGHT + "'");

ref.moveTo(0, 0);
ref.focus();


}
 
Sheriff
Posts: 28346
97
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Why would you need to hide that? Sure, I see that you have a password there, but that password is visible to anybody who displays the source of the page. It's already completely insecure.
 
Sheriff
Posts: 67752
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Don't log in with the popup. Show the new window after logging in through the parent window. Or, display the login form in the popup.

This is all going to be SSL protected in the end, right?
 
World domination requires a hollowed out volcano with good submarine access. Tiny ads are optional.
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic