Questions tagged http-authentication

Explore the latest questions and answers asked by our top developers.

Stay logged with php session & angular

I’m trying to make a login system on angular with a PhP backend. When people login, this is the PhP script called : // here check for good request $account = // found the account thanks to PDO $accountId = $account["id"]; session_start(); $_SESSION["accountId"] = $accountId; setcookie("accountId", $accountId); Then, when I want to get informations according […]

How to clear http basic Authorization credentials saved in the browser

In an angular application, I send an XHR login request to a stateless rest server with http auth header: http .get(`${site.url}/login`, { headers: { Authorization: `Basic ${btoa(`${username}:${password}`)}`, }, withCredentials: true, }) Anytime I request the same server then, I don’t need to send the credentials again: they are saved automatically by the browser. This is […]

Still Have Questions?

Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us