• Post Reply Bookmark Topic Watch Topic
  • New Topic

Session attributes get lost on Firefox

 
Sandra Williams
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a problem with storing session attribute on Firefox. I created a session and set two session attributes in it. But on the next web page, when I tried to retrieve the attributes, they returned null. This only happened on Firefox. IE works fine. Does anyone know how to solve the problem? Thanks a lot.

Sandra
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you have cookies enabled ?
 
Gangadhar Reddy
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Enable cookies in firefox as follows:
Tools>Options>Privacy>Accept cookies from sites.

FYI, IE will not consider whether cookies are enabled or not, when you are accessing code on sessions from LOCALHOST.

So, jessionid will not come into URL, when you are accessing sessions from localhost.

Christophe Verre, any comments?
 
Sandra Williams
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I did enable cookie on Firefox. It doesn't work. I think the problem is whenever I go to the next page, Firefox create a new session, so the previous session is gone and the session attributes get lost. I printed the session ID in the log. On IE, the session ID stay same all the time, but on Firefox, the session ID changed when request being forwarded to the next page. Why is that?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would download the LiveHTTPHeaders plugin for firefox.
With it, you can see all of the HTTP headers (including cookies) that are being passed between the browser and server.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!