Results 1 to 7 of 7
Thread: problem with sessions
- 09-07-2009, 07:23 AM #1
Member
- Join Date
- Jul 2009
- Posts
- 8
- Rep Power
- 0
- 09-07-2009, 08:55 AM #2
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
Different sessions do not share the same session atributes. Session attributes are stored in the .... session. So different sessions will have different session attributes.
- 09-07-2009, 09:04 AM #3
Member
- Join Date
- Jul 2009
- Posts
- 8
- Rep Power
- 0
I'm sorry I don't get you.
I have two jsp files and one of them is in a popup form.
What I'm trying to say is when these files are executed in machine A, the sessions work fine but when executed in machine B, the sessions do not work.
- 09-07-2009, 09:08 AM #4
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
You'll need to be specific about what you mean by "the sessions do not work".
- 09-08-2009, 01:55 AM #5
Member
- Join Date
- Jul 2009
- Posts
- 8
- Rep Power
- 0
Let's see.
In abc.jsp, there's a link that calls xyz.jsp as a popup.
In xyz.jsp, there'll be
session.setAttribute("sesID", session.getId());
And in abc.jsp, there'll be
session.getAttribute("sesID", session.getId());
In my case, these two IDs are different while running on my PC otherwise they are
the same running on other PCs.
What I would like to know is the reason behind this scenario.
Thanks.
- 09-08-2009, 03:54 PM #6
Senior Member
- Join Date
- Dec 2008
- Location
- Kolkata
- Posts
- 280
- Rep Power
- 5
How come getAttribute taking two arguments?session.getAttribute("sesID", session.getId());
: Interface HttpSession)
- 09-09-2009, 01:46 AM #7
Member
- Join Date
- Jul 2009
- Posts
- 8
- Rep Power
- 0
Similar Threads
-
java sessions
By Raghuvasa in forum Advanced JavaReplies: 2Last Post: 12-10-2008, 06:40 AM -
Http Sessions
By manasa in forum JavaServer Pages (JSP) and JSTLReplies: 1Last Post: 03-29-2008, 10:51 AM -
Sessions in jsp
By Ed in forum JavaServer Pages (JSP) and JSTLReplies: 2Last Post: 07-02-2007, 03:46 PM -
sessions in jsp
By Heather in forum JavaServer Pages (JSP) and JSTLReplies: 2Last Post: 06-30-2007, 03:44 PM -
Sessions and logout question
By orchid in forum Web FrameworksReplies: 1Last Post: 05-18-2007, 06:24 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks