Welcome Guest, Not a member yet? Register   Sign In
flashdata won't work with redirects
#3

[eluser]predi[/eluser]
[quote author="TWP Marketing" date="1343323633"]use set_flashdata()
Code:
$this->session->set_flashdata('item', 'value');
[/quote]

Sorry, my mistake. I was using "set_flashdata". I figured what was the problem. I've been testing the project on my localhost server, but the db i was using for session storing was on a remote server with a pretty shitty connection (3-4 sec to get mysqli connected).
So as far as i'm aware now there two solutions:
- do not use remote databases for session storage, use a local one (same sever)
- use cookies only for sessions

dunno why, will look up the "core" code to investigate that "bug" or whatever.


Messages In This Thread
flashdata won't work with redirects - by El Forum - 07-26-2012, 10:19 AM
flashdata won't work with redirects - by El Forum - 07-26-2012, 10:27 AM
flashdata won't work with redirects - by El Forum - 07-28-2012, 12:18 PM
flashdata won't work with redirects - by El Forum - 07-30-2012, 08:19 AM
flashdata won't work with redirects - by El Forum - 08-03-2012, 07:09 AM



Theme © iAndrew 2016 - Forum software by © MyBB