CodeIgniter Forums
Flashdata Issue - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: Flashdata Issue (/showthread.php?tid=39241)



Flashdata Issue - El Forum - 03-05-2011

[eluser]vikascoollives[/eluser]
I have inserted permissions in the session for each function . It works fine for me but when i take more time fill the form it shows permission error as permissions are lost . Can anybody help?


Flashdata Issue - El Forum - 03-05-2011

[eluser]oldmatt[/eluser]
Are you using it in any forms that work?

I ask because sometimes people get
Code:
$this->session->set_userdata();
and
Code:
$this->session->set_flashdata();
mixed up.

Also In the past, I have used:
Code:
$this->session->flashdata();

When trying to set the data and didn't realize it.

Just by the question you asked it sounds like the session is timing out before you have filled out the form, but I have never experienced that problem before.


Flashdata Issue - El Forum - 03-05-2011

[eluser]oldmatt[/eluser]
Oh,

Also, have you set up the session encryption key in the config.php file?


Flashdata Issue - El Forum - 03-06-2011

[eluser]vikascoollives[/eluser]
No, I have not set up the session encryption key and it works fine for all the forms i have used.


Flashdata Issue - El Forum - 03-07-2011

[eluser]vikascoollives[/eluser]
I have used this in my form :

if($this->session->flashdata('frame_url')!="")
$redirect_to = $this->session->flashdata('frame_url');
else
$redirect_to = $this->session->flashdata('referer_url');


Can this be the issue ?