Ask a Question related to ASP.NET Security, Design and Development.
-
restrict 1 active session per user
Well, the best way to do this in my opinion would be to
follow the rule of "most recent user is the active
user". This means if I login on one machine, then
another ... the first session is the one that is cut
off. If the first session then logs in again the second
second would then get cutoff. It's a neverending cycle!
You need to:
1. When a user logs in through forms auth, store their
username and ASP session ID in the Application object.
Make it so that it would overwrite a user with the same
name if one already existed. You could do this with
arrays, objects, strings or however but store the
username and session together so that you can look them
up later easily.
1. On each non-logon page, check the the username and
session ID against what is in the Application object. If
it's not there with the same username and sessionid,
SignOut the forms auth and Abandon their session. Then
redirect then to login.
Now, the code part depends on VB.Net, C#, etc. but from
the description above you should have no problem. Anyone
who can code forms auth can certainly do the above. But
if you do need help just email.
from logging in from multiple computers simultaneously.>-----Original Message-----
>Hi,
>
>I am using forms authentication. How do I avoid a useractive sessions of this user.>
>When a user logs in, I would like to abandon all other>
>Thanks,
>John
>.
>Guest
-
How can I restrict one stream per user?
Hello! I have made a mp3-streamer in flash. Users must log on to a web page in order to access my player. If one user logs in once it's all OK. The... -
How to restrict the user to go back ones the user haslogged out. Or, if he goes back, how to generate custom errorfor
:music; How to restrict the user to go back ones the user has logged out. Or, if he goes back, how to generate custom error for Page Expire ? :music; -
Restrict the user to go back
How to restrict the user to go back ones the user has logged out. Or, if he goes back, how to generate custom error for Page Expire Error ? -
to restrict from user inserting null values
Hi.. How to restrict from user inserting null values in insert pages...I have 3 ttextfields in my insert form so I need user to insert all the... -
[PHP] CHECKING IF A SESSION IS ACTIVE OR NOT
There is no reliable way for the server (Apache, PHP, etc) to know when a user closes a session by closing his browser window. That's one reason...



Reply With Quote

