[eluser]Hartimer[/eluser]
[quote author="Tego10122" date="1233188424"]Question how can I use the session information on my pages
eg
Code:
$_SESSION['emailadress']
I would Like to do the following
Code:
<?php if($_SESSION['logged_in'])
{
echo "link";
}else{
echo "non-member link";
}?>
[/quote]
You do have a is_logged_in() method..
You could use something like
Code:
<?php if($this->dx_auth->is_logged_in())
{
echo "link";
}else{
echo "non-member link";
}?>
if you MUST use $_SESSION may alter the "login" (and logout) method of dx_auth so when logging in it would register the session variable..
As for email (dx_auth email at least) i believe they have an entry on the session lib of CI itself..
Code:
$this->session->dx_auth_email;
Not sure about the real names of the methods/varaibles, I don't have access to the lib right now, so i can't be more specific.. hope it helps though