Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript_howto thread: IE dialog box while closing a window


Message #1 by aoadeyemo@h... on Thu, 18 Oct 2001 14:12:13
Thanx a lot.



> how are you doing your authentication - with Basic Authentication or you
> your own user-database?
> 
> if its your own user database then all you have to do is check for
> session("username") in each ASP - if its empty redirect them to the login
> page
> 
> -----Original Message-----
> From: aoadeyemo@h... [mailto:aoadeyemo@h...]
> Sent: 19 October 2001 11:02
> To: JavaScript HowTo
> Subject: [javascript_howto] RE: IE dialog box while closing a window
> 
> 
> Hi Alex,
> I think i gotten round the problem. 
> Instead of opening different window, i had <a href 
= "LogOut.html">...</a>
> Then in logout.html, there are two javascript functions, one  in the 
body 
> onload, which will run another function after a certain time i.e using 
> window.setTimeout(funct(), 2000).
> Then function funct now redirects the user to a login page. It seems 
long 
> winded but it works. Any better solution pls.
> Thanx
> Ade' 
> 
> 
> > Thanx Alex,
> > My app. actually runs in the main window. the child window only comes 
> into 
> > existence bcos i'm trying to log the user off the system, which i 
could 
> do 
> > without opening another window, but the browser button can then be 
used 
> to 
> > access the app. without logging in.
> > Yes they have to log on when they load the page in the main window.
> > Ade'

  Return to Index