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 in asp?

0 Answers  


How you can add an event handler?

0 Answers  


Is asp.net and .net are same or different?

0 Answers  


How do I use response redirect?

0 Answers  


Can two web application share a session and application variable ?

5 Answers   Satyam, V3 Engineers,






how can i call output parameters from ado.net

3 Answers   TCS,


how to create bin folder in asp.net2.0

8 Answers  


What are the asp.net objects? is it application obects, cache objests etc. or is it state managements, web services etc?

3 Answers   Syntel,


Differentiate between namespace and assembly.

0 Answers  


What is application session?

0 Answers  


What is a Cookie? Where is it used in ASP.NET?

0 Answers   MindCracker,


Can we store object in viewstate?

0 Answers  


Categories