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

Web development help please, this is baffling the crap out of me

ok, I have a site that's using a signup form for people to enter a bunch of information, then I'm storing it in session variables until the final submission, when I then insert it all into the database in 1 shot. The point of this is to keep from cluttering up the database with half-entered forms and whatnot.

What I've found, when using IE7 to do the signup form, for some odd reason that I haven't been able to determine, the session value "username" (e.g. $_SESSION['username']) keeps getting reset from what's posted from the form values to the string "iecssfix".

I have put echos into the pages to see what's in the session values, and what is being sent to the page through http post, and there's nothing in the post itself that would be doing this. I've also did a grep on the entire directory structure of the website's account, and that string does NOT appear in any file in the entire site.

Google has 0 hits for the string "iecssfix", so I'm struggling here. I've talked to 2 other developer friends, and neither of them can figure out where the hell it's coming from either.

This only happens with IE of course, but it has to be supported on this site, so I'm lost... has *anyone* ever seen this?

Thanks

FSNHosting
Newbie Poster
3 posts since Jan 2006
Reputation Points: 10
Solved Threads: 0
 

You might actually have to post the script or at least part of the script. and from what I can gather from your post the username and password isnt being stored when you go onto other pages or something like that. You might want to try using cookies or something like that. However that might not be your problem your question is kind of vague

mikeandike22
Nearly a Posting Virtuoso
1,496 posts since May 2004
Reputation Points: 33
Solved Threads: 19
 
You might actually have to post the script or at least part of the script. and from what I can gather from your post the username and password isnt being stored when you go onto other pages or something like that. You might want to try using cookies or something like that. However that might not be your problem your question is kind of vague

The username and password are being set to session variables as each page loads. For example, when values are posted to the page from the form, I've got a loop in there that takes each posted value, and sets it to a corresponding $_SESSION value. Like so:

foreach($_POST as $key => $value) {
        if(!empty($value)) {
            $_SESSION[$key] = $value;
        }else{
            $_SESSION[$key] = "none";
        }
}


I will also mention that this problem only appears in IE 7, as I've tested the page in Firefox, Opera, and IE 6 without this issue appearing.

As I stated in the original post, I've got print_r functions in the page header to echo out the values of the session and post variables as the steps are gone through, and IE 7 is theonly place this happens. There's nothing in the subsequent $_POST values that would be resetting it in any way.

FSNHosting
Newbie Poster
3 posts since Jan 2006
Reputation Points: 10
Solved Threads: 0
 

have you checked the IE7 security settings? I'm assuming "SESSION" is represented by cookies... IE7 has some pretty funky cookie rules...

MattEvans
Veteran Poster
Moderator
1,386 posts since Jul 2006
Reputation Points: 522
Solved Threads: 64
 

Where exactly is $_SESSION['username'] being reset? Have you figured that out...

Is is in the subsequent HTTP request made by IE7 or is it changed in the first HTTP response when the cookie was set?

digital-ether
Nearly a Posting Virtuoso
Moderator
1,293 posts since Sep 2005
Reputation Points: 461
Solved Threads: 101
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You