Welcome Guest, Not a member yet? Register   Sign In
Session Problem
#1

[eluser]Sawariya[/eluser]
Hi Friends

I am facing some problem in session... if i am coming back to login page After log in how to redirect into same page instead of showing login page..

any idea??\

thanks in advance??
#2

[eluser]Pascal Kriete[/eluser]
Check if the user is logged in and redirect? (that's really all there is to it Smile ) Where you send them is up to you.
#3

[eluser]Sawariya[/eluser]
Thank you inparo..

I am checking authentication in controller.. but if somebody has click on browser's bck button its going to login page.. dat i need to stop..its possible??
#4

[eluser]Pascal Kriete[/eluser]
Sure is. You probably have some sort of is_logged_in() function, so you can use that in your login controller.

Code:
if ($this->auth->is_logged_in() )
{
    redirect('member/home');
}
#5

[eluser]stuffradio[/eluser]
In my login library I wrote, I have a session called checkSession. If the session is true, it redirects.

Just like what inparo has Smile




Theme © iAndrew 2016 - Forum software by © MyBB