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
How does windows service lifecycle differ from a .standard. Exe?
Where is session data stored in asp net?
Can you nest updatepanel within each other?
What is state management react?
how to include timer or counting time to display next page in asp.net
Which adapter should you use, if you want to get the data from an access database?
What is OSI layer? Explain different layers.
Define repository pattern in asp.net mvc? : asp.net mvc
How you can add an event handler?
What is the difference between stored procedure vs function?
What is inproc mode in session?
What are the asp.net server side objects?
What are cao and sao.
Does asp.net still recognize the global.asa file?
Which data type does the rangevalidator control support?