Session Login/Logout script help |
[eluser]mikeymayhem[/eluser]
Hi I am having trouble trying to get my login/logout script to work. I am fairly new to codeigniter and have been working on a small user based blog as a learning project. Basically i have a controller called users which manages all the registration, login and logout processes. When the users logs in successfully the script reirects the user to an account controller which will display recent activites and other profile related material. How ever at the moment the script isnt working as i intend as it still allows users to view the account page if they arent logged in. Ive tried everyway i can think of to get this working and im sure its something really simple that i am missing but i am at my wits end PLEASE HELP code below!
[eluser]mikeymayhem[/eluser]
Code: function login() {
[eluser]mikeymayhem[/eluser]
Code: <?php
[eluser]mikeymayhem[/eluser]
Hi i have fixed the problem thanks to this thread http://ellislab.com/forums/viewthread/94981/ basically sess_destroy was destroying the session but not clear the variables that were set in the log in process the function now looks like this after adding this->session->sess_create(); Code: function logout(){ |
Welcome Guest, Not a member yet? Register Sign In |