i realize this is getting slightly off from turbine so, forwarned it's OT:
> -----Original Message-----
> From: Akmal Sarhan [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 18, 2004 2:44 AM
> To: Turbine Users List
> Subject: Re: auto logging user out
>
>
> I am interested to know how did you implement logging the
> user out when
> they kill the browser.
It seems we may have left a few things untied. We're using the following js to log
the user out:
-----------------
$page.addAttribute( "onUnload", "leave()")
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function leave()
{
var top=self.screenTop;
if (top>9000)
{
document.forms['AutomaticLogoff'].submit();
alert('You have been logged out');
}
}
// End -->
</SCRIPT>
<form name="AutomaticLogoff" method="post" action="$link.setAction( "LogoutUser" )" >
</form>
------------------
this is currently a little IE centric (i've already modified the
document.AutomaticLogoff. to be more friendly, but the self.screenTop doesn't seem
defined for moz either). i'm not sure how this would handle if the browser process
would recieve a kill -9 or some such.
any thoughts/ideas on making this more workable than just to ie would be extremely
kind.
>
> Am Mo, den 17.05.2004 schrieb Mark Lybarger um 17:09:
> > we have a requirement that a user can only be logged in
> from one session at a time. also we're logging them out when
> they close their browser. we're using a database flag to
> show it they're logged in, and prevent subsequent logins
> based on that.
> >
> > the problem is that if the user's session times out when
> logged in (database has isLoggedIn set to true), they won't
> be able to re log into our application. is there a way in
> the turbine framework to tie into the session invalidation?
> i see a setting for the timeout period in the tr.props file,
> but no way to apply a piece of code to run when this happens.
> >
> > any suggestions/insights would be most appreciaited.
> >
> > thanks!
> > mark
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
> > !EXCUBATOR:40a8d55e296782094351919!
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]