Forums Register Login

passing the session from one application to another

+Pie Number of slices to send: Send
Hi,

i am dealing with 2 applications (2 ears) and i need the session to be the same throughout the 2 applications, to deal with session timeout.

i am doing a response.sendRedirect(actionUrl);
but its creating a new request totally and 'm loosing the session and other objects present in session.

i dont want to store the data in DB as well.

how to get to the other application with the same session intact.

any help would be grateful. thanks in advance.
+Pie Number of slices to send: Send
You cannot share a session between two applications.
+Pie Number of slices to send: Send
Hi Bear , please can you explain me in Detail
+Pie Number of slices to send: Send
Explain what? It's not possible.
+Pie Number of slices to send: Send
Thanks Ulf... i did small application understand
+Pie Number of slices to send: Send
then how to handle session timeout through one application to another.

i want to login in one application and go to another, the session inactive timer starts in login application but the session timer is started for another application also having different sessions, when i work on the second application the first application is in idle mode right? , so when i come back to first it has timed out. so how do i get the session shared so that i get the inactive intervals of both applications same. please help !
+Pie Number of slices to send: Send
if you do not want 1st application 's session, then you invalidate it the time of going 2nd one... do vice versa

correct me if i am wrong
+Pie Number of slices to send: Send
 

correct me if i am wrong


You're wrong :-) That is exactly what doesn't work because one app's session can't be accessed from another app.

As I understand the problem, it's also the opposite of what is desired - not invalidating one session from the other, but making sure that they stay active. You might want to consider a shared data store for the session data, maybe a database.
[ September 12, 2008: Message edited by: Ulf Dittmer ]
+Pie Number of slices to send: Send
Thanks Ulf
Don't MAKE me come back there with this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1679 times.
Similar Threads
ISSUES WITH COOKIE(JSESSIONID)
How to maintain/preserve session between applications on same AS?
Question regarding Session Migration
Servlet config in distributed application
Accessing session variables across Multiple applications
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 14:34:18.