Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Which platform does Microsoft .NET use for exchanging data between applications?

1041


What is server side routing?

919


What are demand-paging and pre-paging?

995


What are the advantages of passport authentication?

1023


What is the difference between “Web.config” and “Machine.Config”?

1132


What are the difference between overriding and overloading?

1079


Explain authorization levels in .net ?

1042


Explain why it is useful to use mvc instead of webforms? : asp.net mvc

1040


What parameters can you pass in the url of the api?

1111


What is cas?

1037


What is the best Macanism to clear the Cache in asp.net

1223


What is the difference between system.stringbuilder and system.string

775


Which of the following .NET framework supports Web API?

1080


What are session state modes? List some of the important session state modes of asp.net.

948


Why we use dbms for projects? Why don’t we save any application data in separate files instead of dbms?

1014