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 |
how to write code for role based security
What ASP.NET object encapsulates the state of the client and the browser? a) The Session object b) The Application object c) The Response object d) The Request object e) The Server object
7 Answers Bunzl Vending, Syntax Softtech,
Who creates jsessionid?
What is view state and how this can be done and was this there in asp?
11 Answers Accenture, KDOT, Mphasis,
what is view state?
What is the difference between session object and application object?
What is the difference between GridView and Repeater controls in ASP.NET?
Does JITting occur per-assembly or per-method? How does this affect the working set?
What methods are fired during the page load?
Why do we need a web application session?
Whta are the Various steps taken to optimize a web based application (caching, stored procedure etc.) ?
In how many ways we can retrieve table records count?
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)