This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes Cookies and Login Issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Cookies and Login Issue" Watch "Cookies and Login Issue" New topic

Cookies and Login Issue

Sowjanya Venkiteela

Joined: Nov 25, 2009
Posts: 17

I have an application developed on struts and runs on JBOSS.

We recently moved our code to a public ip say ***.**.***.**;

After that we have introduced an URL by DNS server.

Now the problem is I am unable to login in when my cookies in my browser(only IE) is disabled in Internet Explorer.But,it is fine with other browsers in both cases like enabling/disabling the cookies.

And it is working fine with Internet Explorer when I enable the cookies.

Internally,when an user is logged in I am storing my session id and checking that in my application at relevant times.(when ever a user on memu items etc..).In all the cases my session id is same till logout.But in IE without enabling cookies a new session id is created.So,when I am checking to work with menus,I got a mismatch and application is failing.
Please do the needful.

Thanks in Advance,

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60802

"Sowjanya Vr", please check your private messages for an important administrative matter. And do it before your next post. You are in danger of having your account removed.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Amit Savani

Joined: Mar 02, 2009
Posts: 17
Are you using URL rewriting?

SCJP 1.4, SCBCD 5.0
I agree. Here's the link:
subject: Cookies and Login Issue
Similar Threads
to forum bartner/sheriff
Context Fragment and Session Problem
URGENT ! user privelidges getting swapped when opening 2 sessions in the same machine
Tomcat 5.5 + IE 6.0: Trouble with session cookies
Disabling Cookies, created problem in web application??