You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by FuzzyNavel <ju...@gmail.com> on 2007/03/01 01:06:21 UTC

Session Info LOST in New Browser Window (Linux only)

 Hello All!

I hope someone out there can offer a suggestion as to what might be going
wrong in the following situation.  I am developing an application using JSP
and Tomcat 5.0.24.  I am developing my application on a SunOS server.  I am
deploying my application on a Linux server.  The entire application is
access-controlled except the welcome page.  So clicking any link from the
welcome page prompts a login page.  Once the user logs in, they have access
to the entire application (website).  I have a page in my application that
contains a button that calls a JavaScript function to open a new window.  In
the development environment, the window opens perfectly and contains all the
information expected.  However, when I execute the same function on the
deployment server, I seem to lose the session information as the user is
presented with a login screen in the new browser window.  And to add insult
to injury, the user is not able to log into the new window as they are
informed that their login failed!  As a matter of fact, NO user that is in
the security role for the website is able to login.  It's MADDENING!!!  Why
is this happening?  Except for the operating system, the rest of the
environment is the same:
Tomcat 5.0.24
Java 1.4.2_05 (for the Java Beans)
Internet Explorer 5.50
Form authentication
JDBC Database Realm
j_security_check to process authentication
etc...

Is there a setting that I have overlooked that I need to change in the
deployment descriptor for my application (or Tomcat itself) that is
different when executed from Linux as opposed to SunOS?  

Any suggestions... ANY AT ALL would be appreciated!

Thank you,

~ Fuzzy
-- 
View this message in context: http://www.nabble.com/Session-Info-LOST-in-New-Browser-Window-%28Linux-only%29-tf3324097.html#a9241215
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Session Info LOST in New Browser Window (Linux only)

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

FuzzyNavel,

FuzzyNavel wrote:

> Except for the operating system, the rest of the
> environment is the same:
> Tomcat 5.0.24
> Java 1.4.2_05 (for the Java Beans)
> Internet Explorer 5.50

How did you get MSIE running on Linux?

> In
> the development environment, the window opens perfectly and contains all the
> information expected.  However, when I execute the same function on the
> deployment server, I seem to lose the session information as the user is
> presented with a login screen in the new browser window.

Are you using cookie-based or URL-based session id passing between the
server and the browser?

> And to add insult
> to injury, the user is not able to log into the new window as they are
> informed that their login failed!  As a matter of fact, NO user that is in
> the security role for the website is able to login.  It's MADDENING!!!  Why
> is this happening?

Uh... is it possible that your popup is statically referring to the
development environment? That would explain the session drop (you're
hitting the wrong server) and the fact that nobody can login (because
it's probably a separate authentication database).

> Is there a setting that I have overlooked that I need to change in the
> deployment descriptor for my application (or Tomcat itself) that is
> different when executed from Linux as opposed to SunOS?  

Tomcat should behave the same way on all OSs (especially when they are
both *NIX's).

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF5v3i9CaO5/Lv0PARAgh1AKCxcTZ5a5LWozHvyTHbI3l6QqQzMQCfdmQ5
ZqIByERfYSLmkIY9hgBRczQ=
=XNPS
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org