I’m using Strophe to connect to my Openfire XMPP server. The user fills in his JID and password and a connection is set up to my server. I want, that it is possible to surf across the website without the need to re-authenticate. To make this possible i found out that strophe has a method named"attach" that makes this possible. But i’m
having problems:
first: The server responds with “invalid SID” when strophe sends the disconnect
second: After the web page is refreshed the attach respond is “invalid SID”
I’ve no idea what’s the problem. the RID number is ok and the SID is the same.
Debug data:
http://www.sidproblem.com/http-bind
POST /http-bind HTTP/1.1
Host: www.sidproblem.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; nl; rv:1.9.2.10)
Gecko/20100914 Firefox/3.6.10
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/
;q=0.8
Accept-Language: nl,en-us;q=0.7,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,;q=0.7
Keep-Alive: 115
Connection: keep-alive
Content-Length: 203
Content-Type: text/plain; charset=UTF-8
Cookie: forum_tree=forum_tree;
clubsSession2=knbn8gogq2992v7uli2bs1j0v3
Pragma: no-cache
Cache-Control: no-cache
POST /http-bind HTTP/1.1
Host: www.sidproblem.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; nl; rv:1.9.2.10)
Gecko/20100914 Firefox/3.6.10
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/
;q=0.8
Accept-Language: nl,en-us;q=0.7,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,;q=0.7
Keep-Alive: 115
Connection: keep-alive
Content-Length: 193
Content-Type: text/plain; charset=UTF-8
Cookie: forum_tree=forum_tree;
clubsSession2=knbn8gogq2992v7uli2bs1j0v3
Pragma: no-cache
Cache-Control: no-cache
POST /http-bind HTTP/1.1
Host: www.sidproblem.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; nl; rv:1.9.2.10)
Gecko/20100914 Firefox/3.6.10
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/
;q=0.8
Accept-Language: nl,en-us;q=0.7,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,;q=0.7
Keep-Alive: 115
Connection: keep-alive
Content-Length: 156
Content-Type: text/plain; charset=UTF-8
Cookie: forum_tree=forum_tree;
clubsSession2=knbn8gogq2992v7uli2bs1j0v3
Pragma: no-cache
Cache-Control: no-cache
POST /http-bind HTTP/1.1
Host: www.sidproblem.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; nl; rv:1.9.2.10)
Gecko/20100914 Firefox/3.6.10
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/
;q=0.8
Accept-Language: nl,en-us;q=0.7,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,;q=0.7
Keep-Alive: 115
Connection: keep-alive
Content-Length: 197
Content-Type: text/plain; charset=UTF-8
Cookie: forum_tree=forum_tree;
clubsSession2=knbn8gogq2992v7uli2bs1j0v3
Pragma: no-cache
Cache-Control: no-cache
HTTP/1.1 200 OK
Date: Fri, 15 Oct 2010 12:41:17 GMT
Server: Jetty(6.1.x)
Content-Type: text/xml; charset=utf-8
Content-Length: 210
Via: 1.1 localhost
Keep-Alive: timeout=5, max=97
Connection: Keep-Alive
http://www.sidproblem.com/http-bind
POST /http-bind HTTP/1.1
Host: www.sidproblem.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; nl; rv:1.9.2.10)
Gecko/20100914 Firefox/3.6.10
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/
;q=0.8
Accept-Language: nl,en-us;q=0.7,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,;q=0.7
Keep-Alive: 115
Connection: keep-alive
Content-Length: 206
Content-Type: text/plain; charset=UTF-8
Cookie: forum_tree=forum_tree;
clubsSession2=knbn8gogq2992v7uli2bs1j0v3
Pragma: no-cache
Cache-Control: no-cache
POST /http-bind HTTP/1.1
Host: www.sidproblem.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; nl; rv:1.9.2.10)
Gecko/20100914 Firefox/3.6.10
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/
;q=0.8
Accept-Language: nl,en-us;q=0.7,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,;q=0.7
Keep-Alive: 115
Connection: keep-alive
Content-Length: 214
Content-Type: text/plain; charset=UTF-8
Cookie: forum_tree=forum_tree;
clubsSession2=knbn8gogq2992v7uli2bs1j0v3
Pragma: no-cache
Cache-Control: no-cache
POST /http-bind HTTP/1.1
Host: www.sidproblem.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; nl; rv:1.9.2.10)
Gecko/20100914 Firefox/3.6.10
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/
;q=0.8
Accept-Language: nl,en-us;q=0.7,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,;q=0.7
Keep-Alive: 115
Connection: keep-alive
Content-Length: 83
Content-Type: text/plain; charset=UTF-8
Cookie: forum_tree=forum_tree;
clubsSession2=knbn8gogq2992v7uli2bs1j0v3
Pragma: no-cache
Cache-Control: no-cache
POST /http-bind HTTP/1.1
Host: www.sidproblem.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; nl; rv:1.9.2.10)
Gecko/20100914 Firefox/3.6.10
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/
;q=0.8
Accept-Language: nl,en-us;q=0.7,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,;q=0.7
Keep-Alive: 115
Connection: keep-alive
Content-Length: 83
Content-Type: text/plain; charset=UTF-8
Cookie: forum_tree=forum_tree;
clubsSession2=knbn8gogq2992v7uli2bs1j0v3
Pragma: no-cache
Cache-Control: no-cache
POST /http-bind HTTP/1.1
Host: www.sidproblem.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; nl; rv:1.9.2.10)
Gecko/20100914 Firefox/3.6.10
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/
;q=0.8
Accept-Language: nl,en-us;q=0.7,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,;q=0.7
Keep-Alive: 115
Connection: keep-alive
Content-Length: 158
Content-Type: text/plain; charset=UTF-8
Cookie: forum_tree=forum_tree;
clubsSession2=knbn8gogq2992v7uli2bs1j0v3
Pragma: no-cache
Cache-Control: no-cache
POST /http-bind HTTP/1.1
Host: www.sidproblem.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; nl; rv:1.9.2.10)
Gecko/20100914 Firefox/3.6.10
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/
;q=0.8
Accept-Language: nl,en-us;q=0.7,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,;q=0.7
Keep-Alive: 115
Connection: keep-alive
Content-Length: 83
Content-Type: text/plain; charset=UTF-8
Cookie: forum_tree=forum_tree;
clubsSession2=knbn8gogq2992v7uli2bs1j0v3
Pragma: no-cache
Cache-Control: no-cache