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/
