Login / Password



I want to put some code at the top of my pages which will prompt the
user for a name & password if the session variable IDUser is not set.

How do I get the browser to display the login / password dialog and how
do I access the data the user entered.

Can I put the code that gets the login / password in a page of it's own
and have the browser call that page when the IDUser isn't set, and if
so how do I do it eg.
<?
session_start();
If($_SESSION['IDUser']==''){
//how do I tell it to do the authentication page
}else{
//rest of my code
} ?>


Once the user entered a login / password and I set the IDUser on the
authentication page, how do I tell it to resume loading the original
page (the one that had the above mentioned code on it)?

.



Relevant Pages

  • Re: Login / Password
    ... Go to the login page if not set. ... user for a name & password if the session variable IDUser is not set. ... How do I get the browser to display the login / password dialog and how ... authentication page, how do I tell it to resume loading the original ...
    (comp.lang.php)
  • Re: Login / Password
    ... At the begining of your secure scripts ... Go to the login page if not set. ... user for a name & password if the session variable IDUser is not set. ... //how do I tell it to do the authentication page ...
    (comp.lang.php)
  • Verweise bzw. DTB-Struktur
    ... Bin dabei meine DTB's zu restruktieren: ... ein Login für alle DTBx.mdb-Module ... damit darin definierte IDUser als Globale Variable erkannt wird; ... Die Tblx sind mit den jeweiligen DTBx.mdb zu verknüpfen, ...
    (microsoft.public.de.access)
  • Re: Force Relogin. IIS6, ASP.NET app, IE6+ browser
    ... now it appears you are suggesting I either write a custom authentication ... not prompt with a login dialog. ... The problem you face is that a browser will automatically attempt ... If you can control the browsers to not auto-login to your website, ...
    (microsoft.public.inetserver.iis.security)
  • Re: Force Relogin. IIS6, ASP.NET app, IE6+ browser
    ... now it appears you are suggesting I either write a custom authentication ... cookies/tokens involved; IIS has no idea what a session is; IIS does ... not prompt with a login dialog. ... The problem you face is that a browser will automatically attempt ...
    (microsoft.public.inetserver.iis.security)