954,598 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Session ID changing in Firefox when page is refreshed

Hi,

There is a problem with session ID haunting me for a couple of days. In Mozilla Firefox, the session ID changes every time the page is refreshed. But in IE it does not change and is working correctly. Is this because of some browser settings? Since I am checking the session ID in subsequent pages, this change in session ID is causing a lot of troubles.Please help.

Thanks in advance.

webCurious
Newbie Poster
11 posts since Mar 2009
Reputation Points: 10
Solved Threads: 0
 

Dear, U tried several times, but the session ID did not change. Please let me know which Firefox version you are using.

In case you have adjusted a short session timeout, then the session expires and you get a new ID. This is normal. You can try to get the session timeout by saying:

Response.Write Session.Timeout


Another issue maybe the usage of the session object. Please make sure you use[code]
Session.SessionID
[/code

in order to get the session ID.

Good luck,
Ali

Baradaran
Junior Poster in Training
88 posts since Feb 2007
Reputation Points: 11
Solved Threads: 7
 

Thank you Baradaran...The problem was not with session time out.

The issue is finally sorted out.
On the load of a page I was checking for the value of a hidden field and was abandoning the session if the hidden field value was not 1.
But even though the hidden field value was 1, the session was abandoned evry time the page was refreshed.
Finally when I checked the whole code, it was found that the footer
of my page was referring to an image tag whose source was null as below :

webCurious
Newbie Poster
11 posts since Mar 2009
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You