aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes AJAX and sessions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "AJAX and sessions" Watch "AJAX and sessions" New topic
Author

AJAX and sessions

James Hodgkiss
Ranch Hand

Joined: Jan 22, 2004
Posts: 401
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

Joined: Jan 10, 2002
Posts: 61420
    
  67

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
James Hodgkiss
Ranch Hand

Joined: Jan 22, 2004
Posts: 401
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

Joined: Jan 10, 2002
Posts: 61420
    
  67

Verily.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: AJAX and sessions