• Post Reply Bookmark Topic Watch Topic
  • New Topic

Will my session attributes travel to the front end  RSS feed

 
surendar prabu
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my application i create multiple sessions. I am adding some attributes which are objects of type MyClass,File,MyDatabase. Will all the objects available in the session travel to the client and then to the server for all the requests and response? or only the session Id travels to the client and the server manages all other objects with itself till the session ends.

Pls help me on this.

regards,
Surendar prabu
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The objects stored in the session will reside only at the server side. It is session id that is passed from the client.
 
Jaime M. Tovar
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And it is not a good idea to put non serializable objects in the session, like sql.Connection or other database related stuff.
[ February 22, 2007: Message edited by: Jaime Tovar ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!