Project

General

Profile

Actions

Bug #846

closed

Impossible to have Multiple sessions in the same browser

Added by Thim Anneessens almost 13 years ago. Updated almost 13 years ago.

Status:
Closed
Priority:
High
Assignee:
Pieter Libin
Category:
-
Target version:
Start date:
06/01/2011
Due date:
% Done:

0%

Estimated time:

Description

Hello,

I cannot seem to have multiple concurrent sessions of the same application running in the same browser. For instance when having multiple tabs in Firefox.

I find that strange because the JWt website does not seem to have the same limitations. Is this a known issue? Is there a work arround or is it a feature?

Here is the configuration and a simple code exemple:

Configuration:

- Server: Glassfish 3 on Windows or Linux

  • Client: Windows - Firefox - Opera (latets versions)

Code:

public class Application extends WApplication{

public Application(WEnvironment env) {

super(env);

new WText("Test",getRoot());

WStackedWidget stack=new WStackedWidget(getRoot());

WMenu menu=new WMenu(stack,Orientation.Horizontal,getRoot());

menu.addItem("First", new WText("How are you doing"));

menu.addItem("Second", new WText("Fine and you"));

menu.addItem("Third", new WText("Fine too"));

menu.addItem("Fourth", new WText("Good"));

}

}

Console output after launching first tab:

GRAVE: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1

GRAVE:

Console output after launching a second tab:

GRAVE: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1

GRAVE:

GRAVE: Session exiting:bc1b49ae19fb408b75369c7264ba

GRAVE: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1

GRAVE:

GRAVE: Session exiting:bd9711011a78ee39818054d8c1d7

GRAVE: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1

GRAVE:

Best regards,

Thim.

Actions #1

Updated by Thim Anneessens almost 13 years ago

Extra configuration information:

Using a slitly modified JWt 3.1.8.

Actions #2

Updated by Thim Anneessens almost 13 years ago

Any thoughts?

Actions #3

Updated by Pieter Libin almost 13 years ago

Dear Thim,

you should disable cookies for session tracking,

our examples do this for both jbossm, tomcat and a version of jetty (see the context.xml and jetty-web.xml files in WebRoot).

Please check the glassfish documentation on how to do this.

greetings,

Pieter

Actions #4

Updated by Thim Anneessens almost 13 years ago

Super, fixed.

In Glassfish you simply have to modify your WEB-INF/sun-web.xml.



...

*




  • ...

I will copy this thread on the forum.

Thanks,

Thim.

Actions #5

Updated by Koen Deforche almost 13 years ago

  • Status changed from New to Resolved
  • Assignee set to Pieter Libin

Hey Pieter,

Perhaps we need to have this information somewhere in the documentation (where the info on jetty and jboss is) ?

Regarsd,

koen

Actions #6

Updated by Pieter Libin almost 13 years ago

OK, I´ll add it to the "Library overview" doc

Actions #7

Updated by Pieter Libin almost 13 years ago

done

Actions #8

Updated by Koen Deforche almost 13 years ago

  • Status changed from Resolved to Closed
  • Target version set to 3.1.10
Actions

Also available in: Atom PDF