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 / 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 |
What is the web.config file in asp?
How you can add an event handler?
Is asp.net and .net are same or different?
How do I use response redirect?
Can two web application share a session and application variable ?
5 Answers Satyam, V3 Engineers,
how can i call output parameters from ado.net
how to create bin folder in asp.net2.0
What are the asp.net objects? is it application obects, cache objests etc. or is it state managements, web services etc?
Differentiate between namespace and assembly.
What is application session?
What is a Cookie? Where is it used in ASP.NET?
Can we store object in viewstate?