RTC Forums
November 24, 2024, 02:37:33 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Connection lifetime based data  (Read 4720 times)
x3mike
RTC Expired
*
Posts: 7


« on: February 15, 2013, 05:11:34 PM »

Hello Danijel,

I need to hold some variabled during the lifetime of a connection. I had a look onto sessions, but the session cannot be closed, when the connection is closed.
Is there any other way to tell the server to release all of its modules used by a particular connection, when this connection is closed - maybe by killing the client?

Thank you,
Michael
Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #1 on: February 15, 2013, 05:27:38 PM »

Cleaning up Session data and calling Session.Close will close the Session. This works from any RTC event, including the OnDisconnect event. But if you do NOT want to use Sessions and want all user data to be removed immediately when the user closes its connection or loses the connection, you can also store your user data directly inside the "Info" property of the Sender:TRtcConnection component. That data will most definitely be lost when a connection is closed.

PS. Don't even mention "killing".

PPS. I'm not the only person monitoring these Forums, so you shouldn't start your questions with "Hello Danijel" Wink

Best Regards,
Danijel Tkalcec
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.022 seconds with 16 queries.