• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

AJAX and sessions

 
James Hodgkiss
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Will AJAX requests from my (servlet/JSP) web page send and receive the session object associated with the parent page? Regarding this, is there anything I need to be particularly aware of?

Many thanks,
James
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64718
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sessions object do not get sent/received on any requests -- they are server-side constructs only.

But yes, sessions will participate in Ajax requests just as they do "normal" requests.
 
James Hodgkiss
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK thanks, I should have said 'session token' rather than 'session object'... So I can be sure the session token will be sent with each AJAX request?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64718
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Verily.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic