FransN a écrit :
D'accord Gm_superstar, merci.
Mais es-tu sûr ??
1) connais-tu suffisamment bien le .htaccess pour pouvoir affirmer avec raison qu'il n'y a pas moyen. parfois, il vaut mieux dire qu'on est pas sûr p
|
Je répète, ça ne dépend pas du .htaccess mais du navigateur. On a pas besoin de se réauthentifier, car c'est le navigateur qui garde en mémoire le couple login/mdp.
FransN a écrit :
2) j'ai déjà vu des tas de site qui demandait l'identification à chaque fois... C'était la même fenêtre de login/mdp qu'avec le .htaccess donc tout fait penser que ça en était...
|
Je demande à voir...
Cela dit il est possible que la fenêtre que tu as vue soient une fenêtre JavaScript..
FransN a écrit :
3) On m'a dit qu'on pouvait entrer dans les fichiers .htaccess une ligne de code pour justement demander l'identification perpétuelle..
|
Je ne vois rien de tel dans la doc http://httpd.apache.org/docs/howto/auth.html (authentification basique) :
Citation :
Because the HTTP protocol is stateless, each request will be treated in the same way, even though they are from the same client. That is, every resource which is requested from the server will have to supply authentication credentials over again in order to receive the resource.
Fortunately, the browser takes care of the details here, so that you only have to type in your username and password one time per browser session - that is, you might have to type it in again the next time you open up your browser and visit the same web site.
|
Cela dit il y a peut être moyen de contourner ceci :
Citation :
Along with the 401 response, certain other information will be passed back to the client. In particular, it sends a name which is associated with the protected area of the web site. This is called the realm, or just the authentication name. The client browser caches the username and password that you supplied, and stores it along with the authentication realm,[...]
|
Autrement dit, le couple login/mdp est relatif à la zone d'authentification (realm). Et celle-ci est définie par la directive AuthName. Donc il y a peut être moyen d'obtenir ce que tu cherches en définissant autant de zones que de ressources à accéder. Mais ça reste du bricolage...
Voir aussi :
http://httpd.apache.org/docs/mod/core.html#authname
http://httpd.apache.org/docs/mod/mod_auth.html
Message édité par gm_superstar le 23-12-2002 à 22:48:52
---------------
Incongru : une FAQ abandonnée sur les Standards du Web - FAQ périmée de blabla@Prog