Solved

Lost Session

Posted on 2001-06-23
6
163 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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

759 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now