in reply to Logoff/ReLogin to htaccess in one browser

Thanks for the link dda. It confirms bad news: to do this is to basically render htaccess pointless. :(

The different realm thing could work if I only had one user/pass per realm, however, this is not the case.

Perhaps I'll make a cgi-based system? Is there a javascript snippet that will close all windows and launch another?

  • Comment on Re: Logoff/ReLogin to htaccess in one browser

Replies are listed 'Best First'.
Re: Re: Logoff/ReLogin to htaccess in one browser
by LAI (Hermit) on Jul 10, 2002 at 13:25 UTC
    Unfortunately a Javascript solution wouldn't work. JS runs in the context of your browser, as a child of your browser. So yes, it can close the browser instance, but then the process is dead so it can't do anything. And JS doesn't have the capability to make system calls, so it can't open a new instance before closing the current one.

    Come to think of it, it might be possible to write a small Java applet to open a separate browser instance, but the user would have to explicitly allow the applet to do this... and it's way more trouble than I would go to in your place.

    LAI
    :eof