Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

185
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!