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

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

2117


Explain what benefit does your code receive if you decorate it with attributes demanding specific security permissions?

1077


What’s the use of “GLOBAL.ASAX” file?

1146


How do active server pages work?

1025


Explain the function of new view engine in asp.net? : asp.net mvc

1075


What do you mean by authorization?

1002


What is ipostback?

1132


How many types of cookies are available in asp?

1110


Explain how do you validate the controls in an asp .net page?

980


What is difference cookie and session?

1034


Explain what is event bubbling?

1068


Explain a program using code nuggets to create a simple application? : asp.net mvc

1119


What is is post back property in asp net?

1069


What are the advantages of using session?

944


How can you register a custom server control to a web page?

1028