smaldini / grails-events-push

Events Push
Apache License 2.0
67 stars 29 forks source link

Issue with spring security core: Logged in user's session gets expired once JavaScript attempts to get registered event #68

Open laamlatay opened 9 years ago

laamlatay commented 9 years ago

When I put the following lines in my gsp, I successfully get push events but the sessions gets expired and I get redirected to login page when page refresh is attempted. Working fine without spring security.

try { var grailsEvents = new grails.Events("${createLink(uri:'')}", {transport: "sse"}); grailsEvents.on('bagsUpdated', function (data) { console.log("GOT bags!"); }); } catch (error) { console.log("ERROR: " + error.toString()); }

My plugins,

compile ":spring-security-core:2.0-RC4" compile ":events-push:1.0.M7"

smaldini commented 9 years ago

Any log to support the debugging ? We need to see the cookies on the client side and the DEBUG mode on the server side for spring security and grails (org.springframework DEBUG should be fine).

laamlatay commented 9 years ago

There is no cookies but the one for session (JSESSIONID).