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 the parent class of all the web server control?
Explain login controls.
What is event in asp.net?
How can I create master page in asp net?
What language is asp.net written in?
To get the values in two different controls to match which control you use it?
What does asp.net stand for?
What are the different kinds of assemblies?
Explain the difference between asp & asp.net.
What is the difference between CLICK and MOUSE DOWN Event ?
Where is session data stored in asp net?
What is the significance of attaching a profile while creating a user?
What's the use of response.output.write()?
Briefly describe the role of global.asax?
How do I open an ashx file in windows 7?