Questions tagged [sessionend]

26 questions
0
votes
2 answers

Regarding Session_End and Application_End methods in asp.net

I'm trying to implement a class (lets call it CustomerConnection class) which implements System.Web.HttpApplication interface. I tried to implement two events session_end and application_end events in this class in this way: public class…
Sreedhar Danturthi
  • 7,119
  • 19
  • 68
  • 111
0
votes
1 answer

Before Shutdown wait till saving is finished

I have an application which logs some user data. If the users logs off the workstation it needs to save this information. The program is a windows form c# application. At the moment I am trying to do this by this function below and it works to 95%…
user3077796
  • 192
  • 1
  • 19
0
votes
2 answers

How to know the page on which session ended?

I am in Session_End() of Global.asax.cs There is an operation I need to do only if the session was ended on a specific page. The parameters (sender and eventArgs) are not of any help. Is there a way to figure out last page the user was on? Thanks in…
Pallavi
  • 544
  • 6
  • 15
0
votes
1 answer

How Works Asp.net Session_End

In my asp.net web application when the user logged in i set an isLogged flag in db to true. I use the Session_End method to set false isLogged flag when the Session expires ( after 120 min). I test this method in multiple cases: When user closes…
Luke
  • 517
  • 10
  • 29
0
votes
0 answers

Understand why session_end was called

I'm looking for a way to intercept the reason why the event session_end in the global.asax was called, especially I would like to catch the event when the Session.Abandon() was called... is there a way? I must do some operations only when the…
davidinho
  • 169
  • 1
  • 14
0
votes
1 answer

Codes to be inserted to Session_End block to notify user timeout or redirect

How to display a popup window in C# that tell the user the session has expired? I am thinking about an analogy in JavaScript alert "Your session has expired";. Is there such analogy in C#? Alternative solution is to direct my user to Default.aspx…
Steven
  • 3
  • 2
0
votes
2 answers

Session_ONEnd on PHP

I have recently started programming in PHP. I am building a cart in PHP. I have my products locked in cart when someone adds it to their cart. I need to unlock those products when the specific user gets logoff or session expires. How can i call…
KoolKabin
  • 17,157
  • 35
  • 107
  • 145
0
votes
1 answer

how to signout from form authentication after session end

My MVC application uses FormsAuthentication to sign in. [HttpPost] [AllowAnonymous] [ValidateAntiForgeryToken] public ActionResult Login(FiNext.Models.User user) { try { using (HttpClient httpClient =…
Santosh
  • 2,355
  • 10
  • 41
  • 64
0
votes
0 answers

Session Start and End ASP.NET is there a way to capture a value immediately before it is cleared?

A fairly simple question really. I am trying to hold a series of values in a Cached object, which is populated via a range of session objects. It isn't, but we can kind of think of it as like a chat system. There are multiple users, signed in on…
Jamie Hartnoll
  • 7,231
  • 13
  • 58
  • 97
0
votes
1 answer

how to catch session end when press title bar close button asp.net c#

I have some question about asp.net web application. Web application which use sql server session state. Logout event can session remove but press title bar close button want to remove session. Which events can control when press title bar close…
Stuart
  • 1
-1
votes
2 answers

Session_End doesn't call after i close browser

I use below setting in web.config ... and in Session_End according to Session's value i change a column's value…
SajjadZare
  • 2,487
  • 4
  • 38
  • 68
1
2