[eluser]Jesse2303[/eluser]
Hi all
My login works again, and I've made 2 sessions, you can see below.
When I log in with my login. Everything works fine but only the menu won't update. What I'm doing wrong ?
O, the autoload.php , I added sessions too to the array.
Code:
$this->session->set_userdata('login', '1');
$this->session->set_userdata('gebruiker', $_POST['name']);
Code:
<?php
if(isset($_SESSION['gebruiker'])){
?>
admin <?=anchor('dashboard', 'dashboard');?> begin
- <?=anchor('login', 'uitloggen');?>
modules <?=anchor('pics', 'afbeeldingen');?>
- <?=anchor('nieuws', 'nieuws');?>
<?php
}
else
{
?>
gast <?=anchor('main/index', 'begin');?>
- <?=anchor('main/login', 'login');?></a>
- <?=anchor('main/contact', 'contact', '');?></a>
<?php
}
?>