Forums Register Login
Session accessing across multiple contexts
Hi All
I have 2 applications running on tomcat on different contexts.
i have a link in context 'A' which calls a jsp page in context 'B'.

I am trying to access certain session variables of context 'A' in this context 'B's jsp.
It is returning null.

Can anybody explain if i can access variables like this.

You can not (easily anyway).
Sessions are not meant to be shared across contexts.
Even if there is a workaround please let me know

I heard some application servers provide this feature but it would be application server specific then. Nothing for sure.
Seriously? That's what you're going with? I prefer this tiny ad:
Why should you try IntelliJ IDEA ?

This thread has been viewed 665 times.

All times above are in ranch (not your local) time.
The current ranch time is
Aug 14, 2018 14:24:20.