Angular JS authentication issue with JSESSIONID

609 views
Skip to first unread message

Pawan Goyal

unread,
May 1, 2015, 3:12:01 AM5/1/15
to ang...@googlegroups.com
Hi,

I have Spring MVC application ,where i am using spring security. i have changes the session cookie variable from JSESSIONID to ZSESSIONID.

So my session id value is now getting stored in ZSESSIONID.

Login is working fine.But when i sending a ajax request through Angularjs ,its authentication fails and i am not able to read session data in my Spring controller.

Any Spring DWR ajax will solve this issue by changine JSESSIONID to ZSESSIONID in engine.sj but in angular we do not know where to make change.


please provide any clue to solve this issue.

Sander Elias

unread,
May 1, 2015, 3:27:13 AM5/1/15
to ang...@googlegroups.com
Hi Pawan,

Look up $http default config. (sorry, leaving, no time left to link to the docs!)

Regards
Sander

Pawan Goyal

unread,
May 1, 2015, 6:13:13 AM5/1/15
to ang...@googlegroups.com
I have found the issue.

When we change the configuration in tomcat from JSESSIONID to ZSESSIONID.

We should also recompile mod_jk with ZSESSIONID.

Fernando Moraes

unread,
May 1, 2015, 10:45:58 AM5/1/15
to ang...@googlegroups.com
Why you change the name of JSESSIONID?

--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages