From eedd7259cb81c76c5ad4415db7e46ce7eb1c3817 Mon Sep 17 00:00:00 2001 From: Martin Dosch Date: Thu, 28 Mar 2024 15:53:09 +0100 Subject: [PATCH] Generate new ID for session (fixes #67) Co-authored-by: https://github.com/ikq --- xmpp.go | 1 + 1 file changed, 1 insertion(+) diff --git a/xmpp.go b/xmpp.go index 0d30d9f..a01d2ac 100644 --- a/xmpp.go +++ b/xmpp.go @@ -798,6 +798,7 @@ func (c *Client) init(o *Options) error { } if o.Session { // if server support session, open it + cookie = getCookie() // generate new id value for session fmt.Fprintf(c.stanzaWriter, "\n", xmlEscape(domain), cookie, nsSession) }