Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] $this->session->userdata(); as an array()
#1

[eluser]Bart v B[/eluser]
Hi all,

i have a piece of code that wil store dynamic the values from forms into a CI session.

That works:
Code:
<?php
$data = array();
        $i = 0;        
        foreach($_POST as $key => $value)
        {
          $i++;
          $data[$key] = $value;
        }
        
        $this->session->set_userdata($data);

normaly when you read it out like this: echo $this->session->userdata('voornaam');
But now i don't know what data is stored in the session.
So how do i get the values dynamic?


Messages In This Thread
[SOLVED] $this->session->userdata(); as an array() - by El Forum - 12-12-2010, 03:42 AM
[SOLVED] $this->session->userdata(); as an array() - by El Forum - 12-12-2010, 03:51 AM
[SOLVED] $this->session->userdata(); as an array() - by El Forum - 12-12-2010, 05:12 AM



Theme © iAndrew 2016 - Forum software by © MyBB