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

Uses of CLR ?

2 Answers   Mind Tree, PH Software, TCS,


can we call webservice in Html form?

1 Answers   Bank Of America, BirlaSoft, Microsoft,


What object is used to encapsulate a rowset? a) DataSet b) DataAdapter c) DataRowSet d) DataTable

2 Answers   Syntax Softtech,


How can you handle unmanaged code exceptions in asp.net?

0 Answers  


What is difference between view state and session state?

0 Answers  






Explain the Session state management options available with ASP.NET?

0 Answers   Siebel,


What do you mean by authentication and authorization

3 Answers  


Explain Apache web servers ? How can you get ASP.NET running in Apache web servers - why should you do this?

0 Answers   Siebel,


How do I send an email message from my ASP.NET page?

0 Answers  


what is a virtual class?

1 Answers   Patni,


Details on web.config and global.asax - just explain what are the sections will be there.

1 Answers   Syntel,


Which two properties are there on every validation control?

2 Answers  


Categories