Thx for the precisions. They are very much appreciated.

Does "zero copied" means that there is absolutely zero extra work for
the APE server?

Other question: do inactive sub-user get killed after a while, even if
another sub-user is still active?

Thx in advance.

Nicolas.



On Oct 14, 2:46 pm, Anthony Catel <[email protected]> wrote:
>   The sessid (and some small other meta data) are stored inside a cookie
> (related to the "identifier" you pass to the APE constructor).
> The server detect that you connect on a different host
> "[0-9]+.ape.domaine.com" to create a new "sub user" with a dedicated
> message queue.
>
> Which means that if you have 10 tab or windows open, your user will have
> 10 subuser/message queue (all messages are "zero copied" though).
>
> Anthony
>
> Le 14/10/10 18:32, Nicolas a crit :
>
> > Anthony,
>
> > Can you explain how the session is saved?
>
> > I noticed that the session is still alive after closing the browser.
>
> > Does that mean that the session is saved in cookies?
>
> > And thus that cookie has to be enabled on the browser?
>
> > Thx in advance.
>
> > On Oct 14, 9:22 am, Nicolas<[email protected]>  wrote:
> >> Yes, I have just found that and modified the wiki accordingly.
>
> >> The protocol page was missing that highly important information!!
>
> >> Quelle gal re ! Vraiment.
>
> >> On Oct 14, 9:11 am, Anthony Catel<[email protected]>  wrote:
>
> >>>    Don't forget :
> >>> APE.Config.scripts.push(APE.Config.baseUrl+'/Source/Core/Session.js');
> >>> Le 14/10/10 18:06, Nicolas a crit :
> >>>>http://www.ape-project.org/wiki/index.php/Protocol_Basics
> >>>> is the actual url.
> >>>> On Oct 14, 8:47 am, Nicolas<[email protected]>    wrote:
> >>>>> Hi all,
> >>>>> I am really struggling to understand anything about sessions.
> >>>>> On this page of the doc,http://www.ape-project.org/wiki/index.php/
> >>>>> Protocol, one can see the following example that I reproduce below.
> >>>>> However, when I do open another page or refresh an existing one, my
> >>>>> client starts with a new "connect" and does not do a new "check" as in
> >>>>> the example below. So why does the doc say that on opening a new
> >>>>> window, the client will send a "check" with the previous sessionid?
> >>>>> Why do I not see this in my own app?
> >>>>> A piece of the puzzle is missing. Help me find it. Thx in advance.
> >>>>> POST /? HTTP/1.1
> >>>>> Host: 0.ape.ape-project.org
> >>>>> [{"cmd":"CONNECT","chl":0,"params":{"transport":0}}]
> >>>>> Server respond to client 0 :
> >>>>> [{"raw":"LOGIN","time":"1253633967","data":
> >>>>> {"sessid":"4622c258248931a7dfb081542eaf589f"}},
> >>>>> {"raw":"IDENT","time":"1253633967","data":{"user":
> >>>>> {"casttype":"uni","pubid":"5288a462f528d3609777f31872d31c8d"}}}]
> >>>>> Client 1 : (user opened a new window)
> >>>>> POST /? HTTP/1.1
> >>>>> Host: 1.ape.ape-project.org
> >>>>> [{"cmd":"CHECK","chl":1,"sessid":"4622c258248931a7dfb081542eaf589f"}]
> >>>>> Server respond to client 1 :
> >>>>> [{"raw":"LOGIN","time":"1253633967","data":
> >>>>> {"sessid":"4622c258248931a7dfb081542eaf589f"}},
> >>>>> {"raw":"IDENT","time":"1253633967","data":{"user":
> >>>>> {"casttype":"uni","pubid":"5288a462f528d3609777f31872d31c8d"}}}]
> >>>>> Client 1 : (user join a channel)
> >>>>> POST /? HTTP/1.1
> >>>>> Host: 1.ape.ape-project.org
> >>>>> [{"cmd":"JOIN","sessid":"4622c258248931a7dfb081542eaf589f","chl":
> >>>>> 1,"params":{"channels":["testChannel"]}}]
> >>>>> Server respond to client 0 and 1 :
> >>>>> {"raw":"CHANNEL","time":"1253640697","datas":{"pipe":{"properties":
> >>>>> {"name":"testChannel"},"casttype":"multi","pubid":"2f50f03539dfe782e233d0a76205b3f3"},"users":
> >>>>> [{"level":"1","casttype":"uni","pubid":"4622c258248931a7dfb081542eaf589f"}]}}
>
>

-- 
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/

Reply via email to