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

What is autopost?

528


Difference between singleton and singlecall.

572


Explain the difference between asp.net mvc and asp.net webforms

580


In which event of page cycle is the viewstate available?

578


How we can force all the validation controls to run?

527






What a diffgram is, and a good use for one?

571


What do you understand by aggregate dependency?

618


there is two functions function a and function b like fun a(){.... ..... } fun b() { } in function b i write the coding to add two numbers and i need to dispaly the sum result in function a with out using global variable. how we do?

2229


Define the types of configuration files.

534


Explain the difference between or and orelse?

539


How do u optimize a query in asp.net?

571


What are navigation controls? How many navigation controls are there in ASP.NET 4.0?

543


Why session is more secure than cookies?

504


What's the difference between viewstate and sessionstate?

570


Describe Segmentation With Paging?

632