This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Requests and Sessions

 
Dale DeMott
Ranch Hand
Posts: 515
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My question is in regard to loosing information due to objects being in the request scope or the session scope. If I have some objects that hold important information and I end up using a request scope to hold them. Lets say it is a customerObject. I then go forward 2 pages. I later on decide I want to back track two pages. So I hit the back button on my browser twice. My question is ...will my customerObject still be in the request scope?
-Dale
[ February 28, 2002: Message edited by: Dale DeMott ]
 
Jessica Sant
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Things stored in the request scope will, by definition, only be stored for the life of the current request. If you go forward 2 pages, and then try to click back... you've already lost the objects.
For waht your'e talking about, you'll need to use the session scope.
 
Dale DeMott
Ranch Hand
Posts: 515
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess I was getting confused about if the web page would go back to the server or not and recreate the objects. But I'm thinking it wouldn't normally do that now that I think about it.
-Dale
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic