Welcome Guest, Not a member yet? Register   Sign In
set_flashdata breaks my session
#1

[eluser]Wazzu[/eluser]
Hi, guys, this newbie really needs some help.
I have a simple user login which sets and checks session data for the current user.
Then I have a 'user' controller to edit user's profile.
When I use $this->session->set_flashdata from the controller, my session goes away, so my user needs to login again.
I can't get the reason, it seems that session data gets overwriten when using it.
What is wrong here? How should I do it?

Thanks in advance.
#2

[eluser]Wazzu[/eluser]
Maybe because I'm calling it from a private _profile_save() function?




Theme © iAndrew 2016 - Forum software by © MyBB