• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

request redirection and session

 
nandkishor rao
Ranch Hand
Posts: 53
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

What happens to Session and Session attributes when :

1.) a request is Redirected "currentApplication"?
2.) a request is Redirected "differentApplication"?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64196
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The answer in both cases is: nothing. The session and its scoped variables are unaffected.

Of course, in the second case, the session (and its variables) are not accessible by the second web app and will eventually time out.
[ May 22, 2008: Message edited by: Bear Bibeault ]
 
nandkishor rao
Ranch Hand
Posts: 53
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for answering.
In the case (2), say in my first application I created a session and then redirected the request to different application. So you mean to say that I cannot access the session attributes here? Please explain.
But within a timeout period if I redirect my request from this application to the one where I created a session what happens in that case, will I be able to access the session and session attributes back again?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64196
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds like something that's simple enough to test with a few simple classes. What happens when you try it?
 
nandkishor rao
Ranch Hand
Posts: 53
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know that simple enough to test but my problem is I don't have that much time this time to test, that's why I posted this in the forum to get some help on it beforehand.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64196
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the time you waited for this post, you could have easily tested this. Once thing you will find is that if you are not willing to put in your own effort, you cannot expect others to put in more effort than you yourself are willing to expend.

Please read this for more information.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic