Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > new browser windows all recieve the same session id

Reply
Thread Tools

new browser windows all recieve the same session id

 
 
Gary N.
Guest
Posts: n/a
 
      01-16-2004
Hi -

In JavaScript, I open several new child windows using the window.open
command and assigning each child a unique name. All of the children end up
with the same session id. This is a problem because I can't distinguish
between the children in the servlet code. The children also appear to share
the same bean values (set in child A will be obtained by a get in child B).

Using JavaScript window.open, is there a way to force child windows to
receive unique session id's?

Thanks for the help!!

Gary


 
Reply With Quote
 
 
 
 
Tony Morris
Guest
Posts: n/a
 
      01-16-2004
Use URL Rewriting as the session management mechanism rather than cookies
(which is the default of most servlet containers).

--
Tony Morris
(BInfTech, Cert 3 I.T., SCJP[1.4], SCJD)
Software Engineer
IBM Australia - Tivoli Security Software
(2003 VTR1000F)


"Gary N." <> wrote in message
news:bu7grv$n4l$...
> Hi -
>
> In JavaScript, I open several new child windows using the window.open
> command and assigning each child a unique name. All of the children end

up
> with the same session id. This is a problem because I can't distinguish
> between the children in the servlet code. The children also appear to

share
> the same bean values (set in child A will be obtained by a get in child

B).
>
> Using JavaScript window.open, is there a way to force child windows to
> receive unique session id's?
>
> Thanks for the help!!
>
> Gary
>
>



 
Reply With Quote
 
 
 
 
Gary N.
Guest
Posts: n/a
 
      01-16-2004
Thanks Tony! Where are the switches for URL rewriting? Hopefully, I can
just switch this application.


"Tony Morris" <> wrote in message
news:bu7mjj$kim$...
> Use URL Rewriting as the session management mechanism rather than cookies
> (which is the default of most servlet containers).
>
> --
> Tony Morris
> (BInfTech, Cert 3 I.T., SCJP[1.4], SCJD)
> Software Engineer
> IBM Australia - Tivoli Security Software
> (2003 VTR1000F)
>
>
> "Gary N." <> wrote in message
> news:bu7grv$n4l$...
> > Hi -
> >
> > In JavaScript, I open several new child windows using the window.open
> > command and assigning each child a unique name. All of the children end

> up
> > with the same session id. This is a problem because I can't distinguish
> > between the children in the servlet code. The children also appear to

> share
> > the same bean values (set in child A will be obtained by a get in child

> B).
> >
> > Using JavaScript window.open, is there a way to force child windows to
> > receive unique session id's?
> >
> > Thanks for the help!!
> >
> > Gary
> >
> >

>
>



 
Reply With Quote
 
Tony Morris
Guest
Posts: n/a
 
      01-16-2004
That is container dependant.
You'll have to consult the documentation for whatever container that you are
using.

--
Tony Morris
(BInfTech, Cert 3 I.T., SCJP[1.4], SCJD)
Software Engineer
IBM Australia - Tivoli Security Software
(2003 VTR1000F)


"Gary N." <> wrote in message
news:bu7p9c$qvd$...
> Thanks Tony! Where are the switches for URL rewriting? Hopefully, I can
> just switch this application.
>
>
> "Tony Morris" <> wrote in message
> news:bu7mjj$kim$...
> > Use URL Rewriting as the session management mechanism rather than

cookies
> > (which is the default of most servlet containers).
> >
> > --
> > Tony Morris
> > (BInfTech, Cert 3 I.T., SCJP[1.4], SCJD)
> > Software Engineer
> > IBM Australia - Tivoli Security Software
> > (2003 VTR1000F)
> >
> >
> > "Gary N." <> wrote in message
> > news:bu7grv$n4l$...
> > > Hi -
> > >
> > > In JavaScript, I open several new child windows using the window.open
> > > command and assigning each child a unique name. All of the children

end
> > up
> > > with the same session id. This is a problem because I can't

distinguish
> > > between the children in the servlet code. The children also appear to

> > share
> > > the same bean values (set in child A will be obtained by a get in

child
> > B).
> > >
> > > Using JavaScript window.open, is there a way to force child windows to
> > > receive unique session id's?
> > >
> > > Thanks for the help!!
> > >
> > > Gary
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
kaeli
Guest
Posts: n/a
 
      01-16-2004
In article <bu7vme$h00$>,
enlightened us with...
> That is container dependant.
> You'll have to consult the documentation for whatever container that you are
> using.
>
>


Can't URL re-writing mess up things if a proxy server is used?

Just curious.

--
--
~kaeli~
Support your local medical examiner: die strangely!
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

 
Reply With Quote
 
Tony Morris
Guest
Posts: n/a
 
      01-18-2004
No.

--
Tony Morris
(BInfTech, Cert 3 I.T., SCJP[1.4], SCJD)
Software Engineer
IBM Australia - Tivoli Security Software
(2003 VTR1000F)


"kaeli" <> wrote in message
news:...
> In article <bu7vme$h00$>,
> enlightened us with...
> > That is container dependant.
> > You'll have to consult the documentation for whatever container that you

are
> > using.
> >
> >

>
> Can't URL re-writing mess up things if a proxy server is used?
>
> Just curious.
>
> --
> --
> ~kaeli~
> Support your local medical examiner: die strangely!
> http://www.ipwebdesign.net/wildAtHeart
> http://www.ipwebdesign.net/kaelisSpace
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
prevent to open the SAME APPLICATION (with the same session) in two or more browser windows. jaibux@gmail.com ASP .Net 8 02-13-2007 03:24 PM
why do i recieve the error 'the avi is invalid or does not contain a format supported by microsoft video for windows ' Paul Butt Computer Support 6 09-05-2005 10:00 PM
Recieve Post, New Session Won't Stick, Cookielss Jimmy Jazz ASP .Net Security 0 09-02-2005 09:58 AM
two browser windows -- same session variable? Mark ASP .Net 4 09-15-2004 05:49 PM
Session State - What does it take to establish one single ASP.NET session per "browser session" Jeff Smythe ASP .Net 3 01-02-2004 04:10 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57