Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

184
Visualizações
alternative to user:password@

I'm having a html page “menu.html” which allows users to open different other html pages based on their profile and rights via simple button clicks. In menu.html, User ID and password is checked via Ajax/PHP. In PHP .htpasswd is adapted with the user ID and session ID (or password) accordingly to remain secure. User ID and session ID (or password) are returned to javascript.
Today the redirections within menu.html finds place via window.open as follows:

window.open("https://"+user-id+":"+session-password+"@xyz.be/example1.html)

It all works fine. Menu.html is handling the security aspects of many other HTML files.

Unfortunately including credentials in the url (user-id+":"+session-password@) is now depreciated.

What is the best way to redirect to a HTML page while providing the credentials? All finds place on the same server.

Many thx Pierre

about 4 years ago · Santiago Gelvez
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda