Forum Moderators: coopster
Basically im set up using the Xampp package, doing development on a powerbook, and using a Red Hat system to serve the pages. It's a online business card designer. Php 4.3 something and apache 2.0 on both. I am using the default session behavior and no custom handlers and not using global vars.
What i want to happen is i want to store whether the user currently has a horizontal, vertical, or no text layout. When they upload an image and they have a layout that matches the orientation of what they uploaded it uses that layout. When it doesn't or when they have horizontal layout and they are uploading a vertical image it makes them choose a new layout.
The problem is that it works using safari perfectly fine. But using windows it thinks that the session variable is set to horizontal, even when there is no session set. There is no testing in the code for platform. I setup a getter and setter function to set the session variables for me, and there is no setter function being called. I have echo statements all over the place to show me the value of the session variables, and inside the setter and getter functions, and it seems to be set before a setter function is called, and prior to it loading the next page. In safari it works as it should with no value, but on ie windows it comes up with a value prior to all my code running which is supposed to set it. I echo out it's value at the beginning of all my code after i start the session, and at the trailing end, and it has the value of 'horizontal' on the second page. It only does this on one specific page for ie windows browsers.
Has anyone dealt with anything like this where sessions behave differently for users with pc and mac systems. I still suspect it is just a weird bug in my code, but i really don't know where to look. Could it be pulling information from the session files in some wrong way for only the windows users. i've seen weird things, but never something like this that only a certain platform is getting a different value for a variable.
I'm sure i'll figure it out eventually, just would like to know if there is anything i should look at that would make the retrieved session value different by only changing the web browser i am using.
on my upload file posting form, it looks like the progress bar goes across very fast, then it starts over which seems like when it is uploading the file.
Could it be posting twice, once real fast, and the second time with the file. If it did this just for windows ie clients it would explain how the session is set between the page i start on, and the page i end up on.