[eluser]Aaron_owen[/eluser]
Hi,
Im new to codeigniter and was wondering if someone can help.
I have set up a controller named "site", which loads a view which is the index page of the website. I have set up the site so users can register and log in all works fine.
If I use chrome or firefox and login to my site then I am forwarded to the "site/index" page which is what I set it too. If I then delete the site/index bit off the end of the address it then forwards to the default controller which is the "site" controller, that works fine.
But then when I use IE and log into my site and delete the site/index bit off the end of the address.... the section where I have applied :
Code:
<?php
$var = $this->session->userdata('id');
if (empty($var)){
// Text which shows when not logged in here
}else{
// Text which shows when logged in here
}
;?>
I get back the text which should show if i'm not logged in and if I then hit f5 then I get the text displaying which should display when I am logged in.
Im stuck lol any ideas?