Dibatalkan

HTTP-auth based user switching in PHP(repost)

We have a website protected via HTTP basic auth (the one where the browser itself prompts from user/pass). Because the browser stores the user/pass in memory and sends it in every request, there's no easy way to logoff. We need a small PHP script, that when called forces the browser to request user/pass again (note: just sending HTTP/401 doesn't seem to work well). Your deliverable will be a PHP script that when loaded in a browser will display User: currently_logged_user [Logoff] The logoff button will make the browser ask again for user/pass. Now, because your code is going to be integrated in a larger site (with iframes, some javascript, etc), you have to try it in complex scenarios (not just a simple html as describe above). For example, integrate it in any jquery example you want. If it helps, your logoff button can redirect to a new page to prompt for user/pass, then go back to the original one... or any other creative solution you want. The final goal is to have a PHP function called browser_logoff() that we can call from any PHP script and that causes the page to reload with a different user/pass.

Kemahiran: PHP

Lihat lebih lanjut: call scenarios, reload page jquery, jquery reload page, php function , http request, auth, http redirect page, php http redirect, jquery easy php, sending jquery, http redirect, request call button, jquery redirect page, browser redirect, http redirect code, integrated complex, javascript php function, simple php html example display, http repost, php repost script, jquery creative website, javascript button repost, small function php, call javascript jquery, logoff

Tentang Majikan:
( 150 ulasan ) Madrid, Spain

ID Projek: #2726276