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
What is autopost?
Difference between singleton and singlecall.
Explain the difference between asp.net mvc and asp.net webforms
In which event of page cycle is the viewstate available?
How we can force all the validation controls to run?
What a diffgram is, and a good use for one?
What do you understand by aggregate dependency?
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?
Define the types of configuration files.
Explain the difference between or and orelse?
How do u optimize a query in asp.net?
What are navigation controls? How many navigation controls are there in ASP.NET 4.0?
Why session is more secure than cookies?
What's the difference between viewstate and sessionstate?
Describe Segmentation With Paging?