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


Please Help Members By Posting Answers For Below Questions

What is the default Orientation property in a Menu control?

540


Explain what is viewstate?

555


Is it possible to change the index of primary key on table?

413


What is the function used for removing an event listener?

553


What is difference between web config and global asax?

446






What are navigation controls? How many navigation controls are there in ASP.NET 4.0?

547


how can we create wcf in asp.net and how can we cll that in to asp.net application?plsss tel me each step clearly

1550


What is the difference between session.abandon() vs clear()?

551


What is the difference between stored procedure vs function?

582


Explain the difference between asp and asp.net?

514


What are the types of authentication in asp.net?

559


How can you access the properties and controls of master pages from content pages?

524


What are the Types of object in asp

642


Whta are the Various steps taken to optimize a web based application (caching, stored procedure etc.) ?

564


Why we use asp.net for website development?

501