.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal

Home >> Interview Question >> ASP.Net >> Post New Question Subscribe to Interview Questions

How do you explicitly kill a users session?

Posted By :Amit Mehra     Posted Date :January 31, 2010    Points :10   Category :ASP.Net 
By Calling Session.Abandon() method you can kill session.

You can also find related Interview Question to How do you explicitly kill a users session?  below: 

How do you explicitly kill a user session?

To kill Session you have to use Session.Abandon() with this method we can explicitly kill a user session. (More...)

How can I kill a user session?

Session.RemoveAll(); (More...)

Differences between application and session.

The session object maintains state on a per client basis whereas the application object is on a per application basis and is consistent across all client requests. (More...)

Session state vs View state

In some cases, using view state is not feasible. The alternative for view state is session state. Session state is employed under the following situations:
. Large amounts of data - View state tends to increase the size of both the HTML page sent to the browser and the size of form posted back. Hence session state is used.
. Secure data - Though the view state data is encoded and may be encrypted, it is better and secure if no sensitive data is sent to the client. Thus, session state is a more secure option.
. Problems in serializing of objects into view state - View state is efficient for a small set of data. Other types like DataSet are slower and can generate a very large view state (More...)

what is different between session and application

session is a object that store information between http request for a paticular user.
->But application object are global for each user (More...)

In .NET Compact Framework, can I free memory explicitly without waiting for garbage collector to free the memory?

Yes you can clear the memory using gc.collect method but it is recommended that u should not call this becouse we don't know the exact time when the gc will be called automatic. (More...)

How do I invite users to join a Windows SharePoint Services Site? Is the site secure?

SharePoint-based Web sites can be password-protected to restrict access to registered users, who are invited to join via e-mail. In addition, the site administrator can restrict certain members' roles by assigning different permission levels to view post and edit. (More...)

What security levels are assigned to users for a SharePoint Website?

Security levels are assigned by the administrator who is adding the user. There are four levels by default and additional levels can be composed as necessary.
* Reader - Has read-only access to the Web site.
* Contributor - Can add content to existing document libraries and lists.
* Web Designer - Can create lists and document libraries and customize pages in the Web site.
* Administrator - Has full control of the Web site. (More...)

How to remove a Session variable?

using HttpSessionState.Remove(); (More...)

Is the session Timeout attribute a sliding timeout value?

The session Timeout is a sliding expiration time, meaning whever your page access session state, the expiration time will be moved forward. Please note that as long as a page has NOT disabled session state, it will access the session automatically when requested.

http://santoshdotnetarena.blogspot.com/ (More...)

What is the difference between Session.Abandon() and Session.Clear()?

The major practical difference is that if you call Session.Abandon(), Session_End will be fired (for InProc mode), and in the next request, Session_Start will be fired. Session.Clear( ) just clears the session data without killing it.

http://santoshdotnetarena.blogspot.com/ (More...)

Which typically consumes more memory: application state or session state?

Session state tends to use much more memory than application state, because copies of all variables are stored for each user. (More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend