There's a time out variable in the samples that you can set. I set mine to
the same as the session time out (20 min) so that they tome out at
approximately the same time when the user doesn't do anything.
Sacha
"tshad" <tscheiderich@ftsolutions.com> wrote in message
news:e1X$rNRIFHA.2936@TK2MSFTNGP15.phx.gbl...[color=blue]
> "Sacha Korell" <korell@huntsville.sparta.com> wrote in message
> news:ebjO1FRIFHA.1948@TK2MSFTNGP14.phx.gbl...[color=green]
>> Hi Tom,
>>
>> I'm actually working on the same problem at this time and found some good
>> articles:
>>
>>
http://www.eggheadcafe.com/articles/20030416.asp
>>
http://www.eggheadcafe.com/articles/20030418.asp
>>
http://www.aspfree.com/index.php?opt...k=view&id=2118
>>
>> All articles use a similar technique whereby you store the current user's
>> id in application cache when they log in and remove it when they log out
>> and it works fairly well.[/color]
>
> I'll read those.
>
> I also need to take into account when the session times out. I was
> looking at putting a variable in the Application (global.asax) and track
> that each time a person logs in. But I ran into problems about when do
> you take it out? What if the user never logs out? What about the time out
> I mentioned? I would need to know when to remove him. That's why I was
> looking at the FormsAuthentication, since that is being kept track of
> anyway.
>[color=green]
>>
>> The only problem I have now is that my customer wants a user to be logged
>> out of the system when he uses the same browser to navigate to a
>> different website (without logging out). I other words, if the user
>> navigates to a different website and uses the back button to get back to
>> my application, he should have to log in again.[/color]
>
> That would be a problem for use also.
>
> Thanks,
>
> Tom[color=green]
>>
>> Sacha
>>
>>
>> "tshad" <tscheiderich@ftsolutions.com> wrote in message
>> news:%23Hoqn7QIFHA.3928@TK2MSFTNGP09.phx.gbl...[color=darkred]
>>> If I am using FormsAuthentication, is there a way to check who is logged
>>> in?
>>>
>>> I want to be able to check at any particular time, not just how many
>>> people are logged in, but who they are.
>>>
>>> One thing I want to do is not allow someone to log on from one browser
>>> and then log on again at the same time time from another browser. Or to
>>> prevent someone from using the same login at the same time.
>>>
>>> Thanks,
>>>
>>> Tom
>>>[/color]
>>
>>[/color]
>
>[/color]