Re: Session_OnEnd doesn't get called when shutting down a browser
From: Nancy Drew (genpub5_at_hotmail.com)
Date: 08/12/04
- Next message: Evertjan.: "Re: return single value in asp/sql"
- Previous message: Bob Barrows [MVP]: "Re: return single value in asp/sql"
- In reply to: Dan Nash: "Re: Session_OnEnd doesn't get called when shutting down a browser"
- Next in thread: Aaron [SQL Server MVP]: "Re: Session_OnEnd doesn't get called when shutting down a browser"
- Reply: Aaron [SQL Server MVP]: "Re: Session_OnEnd doesn't get called when shutting down a browser"
- Reply: Evertjan.: "Re: Session_OnEnd doesn't get called when shutting down a browser"
- Reply: Dan Nash: "Re: Session_OnEnd doesn't get called when shutting down a browser"
- Messages sorted by: [ date ] [ thread ]
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
> > > >
> > > >
> > > >
> >
> >
> >
- Next message: Evertjan.: "Re: return single value in asp/sql"
- Previous message: Bob Barrows [MVP]: "Re: return single value in asp/sql"
- In reply to: Dan Nash: "Re: Session_OnEnd doesn't get called when shutting down a browser"
- Next in thread: Aaron [SQL Server MVP]: "Re: Session_OnEnd doesn't get called when shutting down a browser"
- Reply: Aaron [SQL Server MVP]: "Re: Session_OnEnd doesn't get called when shutting down a browser"
- Reply: Evertjan.: "Re: Session_OnEnd doesn't get called when shutting down a browser"
- Reply: Dan Nash: "Re: Session_OnEnd doesn't get called when shutting down a browser"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|