Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [servlet-dev] WebSocket and HttpSession
  • From: Manfred Riem <m_riem@xxxxxxxxxxx>
  • Date: Thu, 8 Jun 2023 16:10:18 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Chju3gc9LKbRcm7T9QkMbhLfCQjft0dI3fKmMt5fdyU=; b=M651bd6DtD596D0b6CBaAHmc6eo8szZDYqaMbiWDQThHD24ChwU1utOrJS8w1rAlLA7k/6gTsdn75UTbvjjwVQw6XHkqc36e+cDO/lY2EMxnpJacwdciAGq3yCIvB+picpbVAWmtgn+vH/gnTrLKjXjwaL1C4L8cnxn+fdI1cXf9L8+968o9AsT+VOVjCggV9WC1Y2Qn9RhXjSLhR5PWRDzqQvX7wVFRozjBLQjfGik0uYSgfpuonZ7fNolObnmL0bbUOAqngMfR4RgBVEa+7I227BpaON2piKA1Pj/1/faIOXyzgn5vCoKRugWDkUZLZvPILZ3ZFSR96xySIlI8ig==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JK6wsPwZ4HWr8P5xlvcG/WhoseTxeWCAZrc1zB2eYqgORgxC01Og+kFLv+3esl9Hy6pIJrzJTSqWM5P8NudJ7LxH3v+yAxNR4Sgjq60Xj3vHN4VSSO1F4E27nUfzEz0tyxDyoXaCb4d8gq5I7OkHE0pvINQB2heJDMaApShcbEMsm10f+wkhl6mO80Uu4Izl5xnAKiLypCUwZCa/NksU8U7Tj2wTWxzbnsMudQ9Y46PGxzQcvMWDXIw8p5j+38Ghs5TemmoBQSWCUFYXyOBO1Rt47WAga3GXyQeXbIIUvINTz52SIDK333RVTgXXzusHtBMgcJS7jFJjDKnyjQgNoQ==
  • Delivered-to: servlet-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/servlet-dev/>
  • List-help: <mailto:servlet-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/servlet-dev>, <mailto:servlet-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/servlet-dev>, <mailto:servlet-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHZmiINqBArDqSrJEOllyvyXuIj5q+BEaXA
  • Thread-topic: [servlet-dev] WebSocket and HttpSession

Hi Mark,

Once you do a protocol upgrade one should not try to use anything that had to do with the original Servlet request.

If someone wants 'session' management then they should implement that as part of their WebSocket application.

Anyway my 2 dollars (inflation and all)

Thanks!

Kind regards,
Manfred Riem

-----Original Message-----
From: servlet-dev <servlet-dev-bounces@xxxxxxxxxxx> On Behalf Of Mark Thomas
Sent: Thursday, June 8, 2023 10:58 AM
To: servlet developer discussions <servlet-dev@xxxxxxxxxxx>
Subject: [servlet-dev] WebSocket and HttpSession

Hi all,

I'd like to see if we can find a way to resolve a long standing WebSocket issue. The full detail can be found in this issue:
https://github.com/jakartaee/websocket/issues/175

The short version is that a WebSocket session that retains a reference to the Servlet HttpSession in place when the WebSocket handshake took place needs a way to indicate that it is using the session and that the session should not be invalidated for inactivity.

My proposal is to add the following method to HttpSession:

public void access()


Calling this method would update the last accessed time to the current time.

The circumstances in which a WebSocket application may call this method would be left as an application concern as different applications are likely to want to adopt different strategies.

Thoughts?

Mark
_______________________________________________
servlet-dev mailing list
servlet-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/servlet-dev


Back to the top