Re: Session_OnEnd doesn't get called when shutting down a browser

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Nancy Drew (genpub5_at_hotmail.com)
Date: 08/12/04


Date: Thu, 12 Aug 2004 19:36:16 GMT

yeah - i was thinking about just that - a server side probe. maybe i can
write a cookie to client, request it every 5 minutes or so, and remove the
userID from the application array if i don't get a response...

setting a shorter timeout on the session object won't help - the application
array persists beyond the session object, so the userID is still in there
(meaning the user won't be able to login the next time).

"Dan Nash" <dan@musoswire.co.uk> wrote in message
news:8B009D34-E800-4974-8CB7-C829DE0BF124@microsoft.com...
> hey
>
> yeah the popup blockers would be a problem. when i used this it was on an
> internal intranet, so that wasnt an issue.
>
> server-side. there must be a way of "probing" the session, say every 5
> minutes, if u get a response, leave them alone, if u dont, log them out.
not
> sure how you would do that. the session will end on timeout anyway -
perhaps
> just give your sessions a really samll timeout value in global.asa?
>
> HTH
>
>
> Dan
>
>
> "Nancy Drew" wrote:
>
> > hey dan
> >
> > excellent idea. one problem may be that the user has a pop-up blocker,
or no
> > client side scripting. i'm hoping for a server side solution if
possible?
> >
> > may still go this route, though.
> >
> > tks
> >
> >
> > "Dan Nash" <dan@musoswire.co.uk> wrote in message
> > news:C45460C4-F94F-4327-9F13-3B88F162B8CD@microsoft.com...
> > > Hi,
> > >
> > > You could try calling a javascript funtion from your <body
onunload="">
> > > event to open a new asp page in a window, and use that new asp page to
> > logout
> > > the user?
> > >
> > > HTH
> > >
> > >
> > > Dan
> > >
> > > "Nancy Drew" wrote:
> > >
> > > > hi all
> > > >
> > > > i'm trying to keep users from being able to login to a site twice at
the
> > > > same time. everytime a user does a login, i stick their userID into
an
> > > > application scoped array. if they try to login again, i bounce them
to
> > an
> > > > error page. i use the session_onEnd sub within global.asa to remove
> > their
> > > > userID from the array at the end of their session, and this seems to
> > work
> > > > fine. however, if i just shut down the browser, the sub_onEnd
doesn't
> > seem
> > > > to get called, so i'm unable to remove their userID from the
application
> > > > array. any ideas on how to force this sub to fire, or is there
another
> > way
> > > > around this?
> > > >
> > > > tks
> > > >
> > > >
> > > >
> >
> >
> >



Relevant Pages

  • Re: [9fans] 9P2000 and p9p
    ... client, then put an EOD indicator in the data. ... needed by any other 9p server or client, save for your client and your ... metadata providing additional information about the data in the ... yeah, yeah, it's gross, but I've seen this sort of thing done where ...
    (comp.os.plan9)
  • Re: NTP on LAN
    ... Now how do i verify that the client is ... raghuramos1987> getting synchronized with the server? ... And yeah I am on a lan ...
    (comp.protocols.time.ntp)
  • Re: 3D Content Central, Crashing or Hanging
    ... Yeah, I have verified this with a client who has also seen it and wanted ... Although I can not reproduce this, I received a SRN (service request ... Posted via Mailgate.ORG Server - http://www.Mailgate.ORG ...
    (comp.cad.solidworks)
  • Re: Identity of the client
    ... instance of a CAO (e.g. a Session object). ... identifying information for the client such as the index you referred to. ... > there any way the server can know who's calling its functions (maybe by ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: pass javascript object reference to a session object
    ... The Session object exists on the server side, ... > javascript code exists on the client side. ... >> How can I pass a javascript object reference ...
    (microsoft.public.dotnet.languages.csharp)