suppose i am Admin in my application and i have to
terminate the session of the particular user in my
application.........how can i do it....?????



suppose i am Admin in my application and i have to terminate the session of the particular user in..

Answer / pushpa

In Global.asax, you have an event called Session_End - this
is the event
which fires (so long as your Session is InProc) when the
Session ends.

Under normal circumstances, the Session ends for two
reasons:

1) it has timed out automatically, by default after 20
minutes of
inactivity, though this figure can be changed

2) it has been ended explicitly ("torn down", to use the
jargon)

You may be familiar with logging out of your on-line
banking application by
clicking a "Logout" button or whatever - it is the code
behind such a button
where you would place the Session.Abandon() code.

Is This Answer Correct ?    4 Yes 7 No

Post New Answer

More ASP.NET Interview Questions

What is the Web.config file used for? a) To store the global information and variable definition for the application. b) Configures the time that the server-side codebehind module is called c) To Configure the Web Server. d) To Configure the Web browser.

8 Answers   HCL, IBM, Syntax Softtech, Vypin, WideVision Technologies,


What you mean by partial Class in asp.net 2.0?

3 Answers   TCS,


What are the built-in objects in asp.net?

0 Answers  


Why do we need asp.net?

0 Answers  


what is the difference between console.writeline &console.output.writeline?

2 Answers  






What is difference between asp state management and asp.net state management?

0 Answers  


how we declare interface

2 Answers  


Explain the different types of directives in .net?

0 Answers  


how to write code for role based security

2 Answers  


Define dll hell?

0 Answers  


What is the significance of attaching a profile while creating a user?

0 Answers   MCN Solutions,


What is the advantage of mvc over asp.net? : Asp.Net MVC

0 Answers  


Categories