my dog learned polymorphism*
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
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: 60782
    
  65

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: 60782
    
  65

Verily.
 
Consider Paul's rocket mass heater.
 
subject: AJAX and sessions
 
Similar Threads
JDBC connection for DB2 database
what's hot and what's not?
GWT and JQuery / Web Framework
Place Association
Thread from servlet ?