Close window?
-
Hi friends, Here i explain the requirments. If a user login he is activated in current members. If he logout using the logout button, he is deactivated. I did it using the database. But the problem is if the user straightly closes the Browser window, his name was not deactivated in the database. Can anyone tell how to solve the problem ??
-
Hi friends, Here i explain the requirments. If a user login he is activated in current members. If he logout using the logout button, he is deactivated. I did it using the database. But the problem is if the user straightly closes the Browser window, his name was not deactivated in the database. Can anyone tell how to solve the problem ??
Work with timeouts. As every user has its own session, you can catch the session-timeout-event. When this event fires you know that the user didn't take an action during the last xx minutes. Deactivate the user in your database according to this event. Regards Sebastian P.S.: A handler for this event can be found in Global.asax.
It's not a bug, it's a feature! Check out my CodeProject article Permission-by-aspect. Me in Softwareland.
-
Work with timeouts. As every user has its own session, you can catch the session-timeout-event. When this event fires you know that the user didn't take an action during the last xx minutes. Deactivate the user in your database according to this event. Regards Sebastian P.S.: A handler for this event can be found in Global.asax.
It's not a bug, it's a feature! Check out my CodeProject article Permission-by-aspect. Me in Softwareland.
Cant understand. Can u explain briefly?
-
Cant understand. Can u explain briefly?
It means you're probably not clever enough to be attempting this task. Which part of the clear explanation you were given used terms you're not able to comprehend ? There is a better way, but it's also more complex, so there's probably no sense in trying to explain it.
Christian Graus Driven to the arms of OSX by Vista. "I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
-
Cant understand. Can u explain briefly?
Do the following: 1) Open the Global.asax-file of your ASP.NET project 2) Go to the method void Session_End(object sender, EventArgs e) ... 3) Call the method you are using to deactivate the user (if he clicks at the logout-button) within session_end @Christian Graus: I'm interested in the better way to do this you mentioned. How does it work? Regards Sebastian
It's not a bug, it's a feature! Check out my CodeProject article Permission-by-aspect. Me in Softwareland.