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 are the Types of object in asp

0 Answers   BirlaSoft,


What is preprocessor in .net? Where it use?

0 Answers  


What is the difference between a thread and a process?

3 Answers  


Write a code for passing ArrayList in Web API?

0 Answers  


Elaborate differentiation between ViewState and SessionState?

0 Answers   QuestPond,






What is Response.Flush method ?

3 Answers   Keane India Ltd,


What is advantage of code behind coding in ASP.NET?

0 Answers   Sans Pareil IT Services,


What are the server controls in asp.net?

0 Answers  


What are validators and list some validators of asp.net?

0 Answers  


IN an ASP.NET Web application if there is any error, how can you debug?

0 Answers   Siebel,


What are validator? Name the validation controls in asp.net? How do you disable them? Will the asp.net validators run in server side or client side? How do you do client-side validation in .net? How to disable validator control by client side javascript?

0 Answers  


When we use cookie less session? Explain its working?

0 Answers   Sans Pareil IT Services,


Categories