cancel
Showing results for 
Search instead for 
Did you mean: 

How and where should i maintain session or cookies in nuxeo while login?

veera_
Champ on-the-rise
Champ on-the-rise

Hi,

We are using nuxeo-dm-5.3.1(jboss). With the use of Java and Flex technologies we create ear and war file and then put it into nuxeo. After starting server application is working fine.

I have problem with two different nuxeo login pages

Once i enter localhost:8080 in browser----login page will open, authentication is processing and then its working fine(this is our UI, it will intract with nuxeo).

Otherwise if i enter localhost:8080/nuxeo in browser----login.jsp page will open, authentication processing and then its working fine.

Its working fine separately.

But i login via localhost:8080 in browser, in another tab if i open localhost:8080/nuxeo means it didn't show login.jsp page and didn't ask username and password. directly login with which user logged in localhost:8080 page.

It should not happen. localhost:8080/nuxeo also should ask username and password if i logged in via localhost:8080. How should i maintain this logic?

Please help me...

Thanks

2 REPLIES 2

Benjamin_Jalon1
Elite Collaborator
Elite Collaborator

Maybe look the path of the JSessionID cookie generated by the server will do the work. Maybe you have to limit by context path /nuxeo and /yourapplication.

Julien_Carsique
Elite Collaborator
Elite Collaborator

This has nothing to do with Nuxeo: Firefox shares sessions between tabs.
/> If you log in http://localhost:8080/nuxeo/login.jsp in a second tab, you may be able to log in with a different user but going back to the first tab (where you were previously logged in), you will loose the first session and use the second one.

See Mozilla bug 117222 - (sessionperwindow) Limit Scope of Session Cookies (new tabs and windows).

There are some workarounds:

  • use different Firefox profiles (run firefox -no-remote -P)
  • use Chrome specific option "open new window without history" (or run chrome /incognito)
  • use dedicated plugins such as Yoono