Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 08-10-2006
joel vennin joel vennin is offline
Registered User
 
Name: Joël Vennin
Organization: University Lille 1
Project: Just Testing when i have time
 
Join Date: Dec 2005
Location: France
Posts: 21
How to determine the reason of a destroyed session

Hello I would like to know how i can determine why a session i've been destroyed. I'm using glacier2, when i've a proxy on a session i can call the destroy method from the client side to kill the session. However, when a timeout appears, the session is also called, and the destroy method of the session seems to be automatically called.

On the server side, i would like to determine what is the reason that kills a session.

Thank you.


Joel
__________________
Phd Student
- University of Lille 1 (France)
- I work on distributed simulation (i'm ask my self if i should use Ice has a backend)
Reply With Quote
  #2 (permalink)  
Old 08-10-2006
matthew's Avatar
matthew matthew is online now
ZeroC Staff
 
Name: Matthew Newhook
Organization: ZeroC, Inc.
Project: Internet Communications Engine
 
Join Date: Feb 2003
Location: NL, Canada
Posts: 1,088
With the current setup there is no way to know this. Why do you want to know that information?
Reply With Quote
  #3 (permalink)  
Old 08-10-2006
joel vennin joel vennin is offline
Registered User
 
Name: Joël Vennin
Organization: University Lille 1
Project: Just Testing when i have time
 
Join Date: Dec 2005
Location: France
Posts: 21
Just to keep an history of session life cycle ...

Thank you

Joël
__________________
Phd Student
- University of Lille 1 (France)
- I work on distributed simulation (i'm ask my self if i should use Ice has a backend)
Reply With Quote
  #4 (permalink)  
Old 08-10-2006
matthew's Avatar
matthew matthew is online now
ZeroC Staff
 
Name: Matthew Newhook
Organization: ZeroC, Inc.
Project: Internet Communications Engine
 
Join Date: Feb 2003
Location: NL, Canada
Posts: 1,088
There is no direct way to do that. The simplest way I can think to do it is add a new method on your derived session that your application calls instead of destroy(). For example:

interface MySession extends Glacier2::Session
{
void logout();
};

Then your application calls logout, which in sets a flag and calls destroy. In this way you know if destroy is called directly it was destroyed by a session timeout, otherwise it was destroyed by your application.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
PermissionDeniedException ,reason is "internal server error" ewiniar Help Center 2 05-18-2006 06:55 AM
Session dashie Help Center 3 02-19-2006 10:40 PM
determine messagesize during runtime DeepDiver Help Center 3 01-26-2006 08:22 AM
When will the object associated with a proxy be destroyed? PeteH Help Center 7 01-25-2006 03:30 AM
avoiding ping()ing to determine client's lifetime andhow Help Center 1 02-04-2005 04:41 AM


All times are GMT -4. The time now is 11:36 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.