Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


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 syntax for datagrid and specifying columns ?

2 Answers   Microsoft,


Is viewstate secure?

0 Answers  


Why mvc is better than asp.net? : Asp.Net MVC

0 Answers  


What language does asp.net use?

0 Answers  


What property must you set, and what method must you call in your code, in order to bind the data from some data source to the Repeater control?

4 Answers  






What is the use of dispose method?

0 Answers  


Explain automatic memory management in .net.

0 Answers  


How can we register exception filter globally?

0 Answers  


What asp.net control can embed xaml into asp.net pages?

0 Answers  


Which method do you use to kill explicitly a users session?

0 Answers   MindCracker,


What is client side state management?

0 Answers  


Any disadvantages in Dataset and in reflection ?

0 Answers   DELL, Digital GlobalSoft,






Categories