mysql - PHP/Session/IE: Constant are saved, variable not -
I have a very strange problem.
Status: Session Handling on MySQL, PHP 5.2.4, Wildcard Cookies, FF / Opera / Safari / Chrome Works, IE 7/8 No
When I save a variable in the session, the value is lost. DB shows "N" only after the writing operation instead of "123456". Example:
$ bar = 123456; $ _SESSION ['AF'] = $ bar;
But when I save continuously in the session, then it works.
$ _ session ['foo'] = 123456;
This is not really a client problem, but only in IE does this work.
Any thoughts?
Edit : This is a session writing function:
to write the function _write ($ id, $ data) {$ "Set session time." time (). "', Data =' '.mysql_real_escape_string ($ data)."' WHERE id = '".mysql_real_escape_string ($ id)."' "$ Result = @msql_query (write $); if (mysql_affected_rows ()) $ result Return; Else {$ write = "Enter session (id, time, data) value ('" .mysql_real_escape_string ($ id) "', '" .time (). "', '" .mysql_real_escape_string ($ data ). ''); Return @ mscul_query (write $);}}
When I print the update query (write $) then everything looks OK I I can execute and can also be used for variables
Perhaps every time sessionId is fresh in IE?
Then Every time - New session
Comments
Post a Comment