-
December 12th, 2008, 10:52 AM
#1
When referring to a single server instance only, there is a solution provided to enable a new session while destroying the previous one (thus covering any case, such as page refresh, stream-sense algorithm, etc.). In the notifyNewSession, you should throw a ConflictingSessionException. In this way, the existing session will be closed, then the new one will pass again through notifyNewSession.
If you have a server cluster, things get a bit more complicated, as the ConflictingSessionException cannot work across different servers. In this case, you need to force a session termination on a remote server (that is, a different server than the one hosting the Adapter that is handling the notifyNewSession). In this forum thread some techniques for achieving this are outlined. With the current Moderato, Allegro and Presto editions, you can only use Option 1 and Option 3 (but in the future we will enable Option 2 on all the editions). Basically, you should use a DB to keep track of the user / sessionid+server pairs in the cluster and use this information to decide if a session in the cluster should be killed at any time.
Similar Threads
-
By Alessandro in forum Adapter SDKs
Replies: 4
Last Post: October 24th, 2011, 09:33 AM
-
By squint in forum Adapter SDKs
Replies: 1
Last Post: September 10th, 2010, 11:37 AM
-
By dalmy in forum Adapter SDKs
Replies: 1
Last Post: July 12th, 2010, 09:38 AM
-
By k0nan in forum Adapter SDKs
Replies: 1
Last Post: May 12th, 2010, 09:50 AM
-
By stephenlam in forum Client SDKs
Replies: 5
Last Post: April 22nd, 2010, 09:19 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 12:43 AM.
Bookmarks