Solved

Lost Session

Posted on 2001-06-23
6
170 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

 

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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
The viewer will learn how to implement Singleton Design Pattern in Java.
Suggested Courses

622 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