Http Session Problem

I am developing a web based application using servlet & JSP, I am

maintaining some data in session ragarding User when the request is

sent from one page to the other the session id is changed every time

moving from one JSP to another.It is happening in internet Explorer 6 &

above only where as in netscape & in opera browser it is working i.e.

session id doesn't change unless invalidate or create new session. can

any body help me out to solve this problem that why new session is

creating every time a JSP page is loaded.

Development IDE : IBM Visualage For Java 4

JDK 1.3

Kindly Email me onwajahat.ku@gmail.com

Best Regards

Wajahat

[742 byte] By [wajahat.ku@gmail.coma] at [2007-11-26 18:12:02]
# 1
Hello,You need to get the existing session instead of creating a new session.U can set this by request.getSession(false)here is an example<%=request.getSession(false).getAttribute("UserName")%>Hope this helps.
kris10a at 2007-7-9 5:44:47 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Is your problem solved?
kris10a at 2007-7-9 5:44:47 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
No the problem still presist.HttpSession expires only in Internet Explorer.
wajahat.ku@gmail.coma at 2007-7-9 5:44:47 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
when u tried.... String str= request.getSession(false).getAttribute("UrData");what d error u r getting ? or u simply getting str= null ?
java_usera at 2007-7-9 5:44:47 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5
Dear All the problem is now solved and the problem is with the windows, actually i observed that session was not expiring on the PC whose computer names were like ABC, PC-1 but some PC were using _ 'underscore' so i removed underscore '_' from my pc name and the problem removed as
wajahat.ku@gmail.coma at 2007-7-9 5:44:47 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...