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....?????

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you nest updatepanel within each other?

540


What are the session management techniques asp net?

549


Explain the disadvantages of viewstate?

560


How do you store a value in viewstate and retrieve them?

554


Where is asp.net view state stored?

500






Which ASP.NET configuration options are supported in the ASP.NET implementation on the shared web hosting platform?

645


What is a server farm in iis?

528


What is a pixel url?

503


Explain Features in ASP.NET

564


Is asp.net different from asp? If yes, explain how?

483


Is sql backend or frontend?

549


What is the adavantage of using ASP.NET routing?

638


How could you modify xaml content from javascript?

500


What is active web pages?

494


What is cached data phone?

515