CodeIgniter Forums
CI Sessions - 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: CI Sessions (/showthread.php?tid=45774)



CI Sessions - El Forum - 10-05-2011

[eluser]Unknown[/eluser]
I'm using this for testing the session behaviour.

Code:
public function testSessionStart(){
        
            
            $this->session->set_userdata('start','success');
            debug($this->session->all_userdata());
            debug($this->session->userdata('session_id'));
            echo "<br><a href='".base_url()."login/testSessionEnd'>Klick me</a>";
        }
        
        public function testSessionEnd(){
            $this->session->set_userdata('end','success');
            debug($this->session->all_userdata());
            debug($this->session->userdata('session_id'));
        }
I call the startfunc and a new session_id is generated and saved in my db.
Next i click the link and call the endfunc. This func generates a new session_id too.

So what i have to do that the session is "transfered" correctly ?