You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Yaman Kumar <ya...@nous.soft.net> on 2002/06/03 06:28:46 UTC

How to make both parent and child windows opened by javascript in browser to participate in same session.

Hi,

How to make parent and child browser windows (related to same application)
participate
in same session always that are opened by javascript . and application is
using TOMCAT4.x

I have stored so much information in a session of parent window and  i tried
to access          information in the child window that is opened from
parent window using javascript is becoming
null and treated in new session.

Code in templateinfo.jsp(in parent window) is below.

function show(){
	childWindow1=window.open("myapp/userinfo.jsp?name=<%
=userName%>","child1","HEIGHT="+hit+",WIDTH="+wid+",top=0,left=
	0,status=YES,scrollbars=YES");
}

some times userinfo.jsp is participating in new session but not always?

Can any throw light in it?

Many Thanks,
Yaman


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>