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 viewstate?
Usage of web.config?
What is the difference between User Controls and Master Pages
22 Answers Deloitte, IBM, IntraLogic, Markit, TCS,
• What Session State providers are available in ASP.NET? What are the pros and cons of each?
Why will you usually create an aspnet user account in the database for an asp.net web application?
What would be salary for 6+ years of experience in ASP.NET in different metro city in india?
What is the behavior of a Web browser when it receives an invalid element?
what is webpart? what r the parts in this webpart (zone)
Explain the reason why the javascript validation not run on the asp.net button but run successfully on the html button?
List the events in page life cycle.
What is repository pattern in mvc.net? : asp.net mvc
How can we Maintain more than on config file in one .Net web application and how?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)