0

I have a page that generates a $_SESSION['variable'] that is dynamic, so when you refresh the page the session has a different value everytime ( just a value of 0-10 ). But when I refresh the page in firefox, nothing shows up, but in IE it works fine. I also tried in Opera but it doesn't show up there either. Anyone know why it's not echoing, and yes I session_start() at the top of my page so it should work...

1
  • 8
    Please post some code. Commented Jan 8, 2010 at 22:02

3 Answers 3

1

I had a sort-of similar problem just now and the problem was due to the prefix of my URL.!

Let me explain, I defined my session in a page starting WITH "www." but the href to the second page was hastily defined without "www." at the beginning. After checking the COOKIES I realized that there were two distinct IDs for my sessions. Hope it helps.

Sign up to request clarification or add additional context in comments.

Comments

0

Do you have firebug installed for firefox? If so, do you have the firecookie addon

If so, you should see the presence of PHPSESSID. If you don't see any cookies, then chances are, this is your issue.

2 Comments

You can also go through View Page Info > Security > View Cookies without needing the Firebug plugin.
I just installed firecookie, I already had firebug installed. Where do I look to see if its recognized, because right now if I go to my cookies in firefox, i see PHPSESSID twice..
0

Are cookies enabled on Firefox? If they are not you have to enable passing the session ID through the query string. I think that is disabled by default.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.