![]() |
keep_flashdata bug? [urgent help needed] - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: keep_flashdata bug? [urgent help needed] (/showthread.php?tid=16751) |
keep_flashdata bug? [urgent help needed] - El Forum - 03-16-2009 [eluser]PoWah[/eluser] I dont get whats wrong. On my local machine (windows) keep_flashdata works as expected - it keeps the data in session, but on the production server (linux) it does NOT keep the data :/ Tested with firefox on both. Can somebody explain what influences that behavior? Code: function bid() keep_flashdata bug? [urgent help needed] - El Forum - 03-16-2009 [eluser]pistolPete[/eluser] What are the differences between testing and production server (besides the operating system)? PHP version, DB, etc. Which CI version are you using? keep_flashdata bug? [urgent help needed] - El Forum - 03-16-2009 [eluser]PoWah[/eluser] CI 1.6.1 Server: PHP 5.2.5, MySQL 5.0.45 Localhost PHP 5.2.8, MySQL 5.0.51a keep_flashdata bug? [urgent help needed] - El Forum - 03-16-2009 [eluser]jedd[/eluser] I'm assuming you've echo'd out the flashdata just before you make the keepflashdata call, yeah? Is it still there at that point? keep_flashdata bug? [urgent help needed] - El Forum - 03-16-2009 [eluser]TheFuzzy0ne[/eluser] I'm not convinced that you are actually setting it with any meaningful data to begin with. I'd suggest you try setting it with a string instead of a variable, just to be sure. Also, you may need to confirm that cookies are actually working. If you've fiddled with the settings such as cookie prefix, it may be causing problems. The [url="https://addons.mozilla.org/en-US/firefox/addon/60"]Web Developer extension for Firefox[/url] can help you do just that. keep_flashdata bug? [urgent help needed] - El Forum - 03-16-2009 [eluser]PoWah[/eluser] no, the data is set correctly (i've done var_dump to check). Cookies is working - if they wouldnt work - whole site would stopped functioning normally (user logins, etc..) @jedd - i've tried not to echo anything but if i get redirect it means no flash variable is available.. Okay I replaced flashdata usage at this time, no time for research this time, but i will do that in near future, because this is very strange behavior which can affect my developed auctions site a lot. keep_flashdata bug? [urgent help needed] - El Forum - 03-16-2009 [eluser]TheFuzzy0ne[/eluser] What is the data your using? Does it log you out? I found that backslashes seem to break cookies. keep_flashdata bug? [urgent help needed] - El Forum - 03-16-2009 [eluser]jedd[/eluser] Quote:@jedd - i've tried not to echo anything but if i get redirect it means no flash variable is available.. I meant echo it for debugging purposes. Just before you test for it. You know - to confirm it's really there and contains what you think it should. And I thought your test, as shown, would only switch based on whether the variable resolved to true or false, not whether it is available (you'd have to do an is_set() otherwise). Could be wrong, would need to test it. keep_flashdata bug? [urgent help needed] - El Forum - 03-16-2009 [eluser]TheFuzzy0ne[/eluser] isset()** (Sorry, Jedd!) |