Next in thread → Next in month →

RE: [wsrp] Setting SessionContext.expires to zero

From
Nader Oteifa <>
Date
2008-02-19T20:43:57+00:00
ID
4E543711FE14460B825A66053C71FD0F@n3o
Thread
RE: [wsrp] Setting SessionContext.expires to zero
You are right.  It does not make
sense to return back a pre-expired session if that is the interpretation. 
When it’s not specified, it’s easy to make assumptions as to what
it means (use consumer default expiration, same as -1, same as invalid session fault,
never reuse this id again, etc. etc.).  

From: Michael Freedman [mailto:] 

Sent: Tuesday, February 19, 2008
2:38 PM

To: 

Subject: Re: [wsrp] Setting
SessionContext.expires to zero

 

yes, except for the 0 expires  -- I would expect
the expires to be the duration of this new session.  0 can be returned but
it has no meaning regarding prior sessions and as such is nonsensical (though)
valid) for this id.

    -Mike-

Rich Thompson wrote: 

#2 is definitely the preferred ... 

Rich 

 

  
  
From:
  

  
  
  
"Nader
   Oteifa" <>
  

  
 

 

  
  
To:
  

  
  
  
<>
  

  
 

 

  
  
Date:
  

  
  
  
02/19/08 01:47 PM
  

  
 

 

  
  
Subject:
  

  
  
  
RE: [wsrp] Setting
  SessionContext.expires to zero

  
 

 

I agree with you on caching.  My question is
regarding session and I’m probably beating a dead horse.  I just
wanted to know if returning a session having a session expires of 0 had special
meaning to the consumer.  I want to be clear on what options are possible
if the producer has determined that the session has expired and the
implications: 

  

1)       Return the same session id with expires of zero – consumer
does not use session in future calls 

2)       Return a new session id with > zero expires – the normal
case (I presume) 

3)       Throw invalid session fault – causes consumer to repeat last
WSRP operation without a session id.  I believe this is to force
re-passing of templates once more if previously stated they were stored in
session, etc. 

  

Hopefully, these options for returning session and the
implications are correct. 

  

Nader 

 

From: Michael Freedman
[mailto:] 

Sent: Tuesday, February 19, 2008 11:22 AM

To: 

Subject: Re: [wsrp] Setting SessionContext.expires to zero

  

As further information, 0 is commonly the setting when one only wants
validation level caching (checks).  I.e. return a 0 expires and an
validation tag.

    -Mike-

Rich Thompson wrote: 

We explicitly chose -1 for never expires such that 0 could have the normal
meaning from a caching sense of already expired. 

Rich 

 

  
  
From:
  

  
  
  
"Nader
   Oteifa" <>
  

  
 

 

  
  
To:
  

  
  
  
Rich
  Thompson/Watson/IBM@IBMUS, <>
  

  
 

 

  
  
Date:
  

  
  
  
02/14/08 10:35 PM
  

  
 

 

  
  
Subject:
  

  
  
  
[wsrp] Setting
  SessionContext.expires to zero

  
 

  

 

Rich, 

 

How should setting SessionContext.expires to zero be interpreted by the
consumer:  a) an expired session b) same as unspecified c) other?

 

Thanks 

 

Nader 

  

---------------------------------------------------------------------
To unsubscribe from this mail list, you must leave the OASIS TC that generates
this mail. You may a link to this group and all your TCs in OASIS at: https://www.oasis-open.org/apps/org/workgroup/portal/my_workgroups.php

---------------------------------------------------------------------
To unsubscribe from this mail list, you must leave the OASIS TC that
generates this mail.  You may a link to this group and all your TCs in OASIS
at:
https://www.oasis-open.org/apps/org/workgroup/portal/my_workgroups.php
Next in thread → Next in month →