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
is gateway for sms continue connected for sending sms.how?
What’s the use of “GLOBAL.ASAX” file?
What are the difference between overriding and overloading?
Differentiate between early binding and late binding.
Why we use asp.net for website development?
How do you open a page in a new window?
Where would you use an ihttpmodule, and what are the limitations if any?
How many types of controls are there in asp.net?
Error : The operation couldn’t be performed because ole db provider sqlncli10 for linked server was unable to begin a distributed transaction.00000110 oledb provider for linked server returned message the partner transaction manager has disabled its support for remote/network transactions. I can able to execute the stored procedure in sql server but when i run the web page getting error like above. I did all the configuration. what is the solution?
What are ASHX files?
Explain what does mvc represent in asp.net? : asp.net mvc
Explain Session state management options in ASP.NET.
What is the difference between custom controls and user controls?
What are the disadvantages of asp.net?
Explain about Multi-Language integration?