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
Can you nest updatepanel within each other?
What are the session management techniques asp net?
Explain the disadvantages of viewstate?
How do you store a value in viewstate and retrieve them?
Where is asp.net view state stored?
Which ASP.NET configuration options are supported in the ASP.NET implementation on the shared web hosting platform?
What is a server farm in iis?
What is a pixel url?
Explain Features in ASP.NET
Is asp.net different from asp? If yes, explain how?
Is sql backend or frontend?
What is the adavantage of using ASP.NET routing?
How could you modify xaml content from javascript?
What is active web pages?
What is cached data phone?