Solved

Lost Session

Posted on 2001-06-23
6
165 Views
Last Modified: 2010-04-16
I have a page with three frames.

The top frame is a login form.
The left frame is a navigation menu.
The right frame is the main page.

The problem is that when a login is a success, I put String values into a session.  Should the String values in the session ever turn null, I know that my session has expired.

There is no problem when my server is run from it's main URL:  www.mycompany.com

The problem is that when my alias www.mycompany.org is loggin in, the menu appears, the values are put into the session(same code), but my main pages saying that my session has timed out...
0
Comment
Question by:jerelw
6 Comments
 
LVL 14

Expert Comment

by:sudhakar_koundinya
ID: 6222548
0
 

Expert Comment

by:jaikishan
ID: 6224562
can u tell me the environment in which u r running...
0
 
LVL 3

Author Comment

by:jerelw
ID: 6225722
problem solved.

I used HttpUtils.getRequestURL(request).toString();

for some reason, my frames were generating new sessions for www.site1.com www.site2.com, and www.site3.com even though they were all the same WebServer.

My code, however, had a login screen sending logins to a servlet on www.site1.com only....


Is there any way to control how people log in?

I run admin functions on users on line, current searches, etc.  and I want to force all logins to one static servlet.


0
ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

 

Accepted Solution

by:
jaikishan earned 50 total points
ID: 6227226
may be a redirector can work if the login is of admin one can send him to adminServlet and the rest will go to some other page.
other way may be is to have a utility running at a port other that the normal 80. This utility will handle all requests at that port and can work as admin utility
0
 
LVL 3

Author Comment

by:jerelw
ID: 6636445
not the solution, but you tried.

thank you!
0
 

Expert Comment

by:engendro
ID: 7987972
Well i had the same problem, you only you need is a header at the top of your page with a P3P privacy policy, you lost the session, because the security level that is implemented in IE 6
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Java - Why doesn't this JFrame work 3 59
JavaScript/Java - Changing an image background color 4 67
javap bin 2 34
How do I remove an object from a 3 26
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

778 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question