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's a bubbled event?

3 Answers   Siebel,


How do you manage session in ASP and ASP.NET?

1 Answers   Microsoft,


Define Query Interface,Adref,Release?

1 Answers   Microsoft,


What is a viewbag?

0 Answers  


What language does asp.net use?

0 Answers  


Describe the role of inetinfo.exe, aspnet_isapi.dll andaspnet_wp.exe in the page loading process.

1 Answers  


What is the parent class of all web server control?

0 Answers  


What is caching and types of caching ?

2 Answers   Infosys,


Can you change a Master Page dynamically at runtime?

0 Answers  


Which of the following .NET framework supports Web API?

0 Answers  


What command line used to generate Runtime callable wrapper.

2 Answers   CTS,


What is dynamic web page with example?

0 Answers  


Categories