Welcome Guest, Not a member yet? Register   Sign In
Displaying session data into view?
#3

[eluser]markup2go[/eluser]
Code:
&lt;?php #echo $username; ?&gt;<br>
&lt;?php #echo $password; ?&gt;<br>

The # isn't valid code. If you are developing you could open the main index.php file and have at the top:
Code:
ini_set('display_errors', 1);
error_reporting(E_ALL);

Or you can enable logging. I'm sure seeing the syntax error would have assisted you faster.

Also, you'll want to use the following syntax when passing single values for the session's userdata:

Code:
$this->session->set_userdata('some_name', 'some_value');

Or you can pass an array with keys/values.


Messages In This Thread
Displaying session data into view? - by El Forum - 12-22-2010, 01:03 AM
Displaying session data into view? - by El Forum - 12-22-2010, 02:00 AM
Displaying session data into view? - by El Forum - 12-23-2010, 01:58 AM



Theme © iAndrew 2016 - Forum software by © MyBB