Welcome Guest, Not a member yet? Register   Sign In
When i click Undo Button in Browser the go back to login form w/o checking the session.
#1

[eluser]frans.delacruz@yahoo.com[/eluser]
Hi Guys
I'm newbie in CodeIgniter..I have a problem about the Undo Button in Browser will go back to login form ..I already logged in..How to checking my session if i click Undo Button thxx
#2

[eluser]noideawhattotypehere[/eluser]
Code:
if ($this->session->userdata('loggedin')
{
redirect('anywhereyou/want');
}

PS: This will work only if you set a flag in session 'loggedin' after successful login attempt
#3

[eluser]frans.delacruz@yahoo.com[/eluser]
quote author="noideawhattotypehere" date="1375950474"]
Code:
if ($this->session->userdata('loggedin')
{
redirect('anywhereyou/want');
}

PS: This will work only if you set a flag in session 'loggedin' after successful login attempt[/quote]
I have that i need is how to refresh my controller when i click Undo Button in the Browser
#4

[eluser]noideawhattotypehere[/eluser]
Disable page caching
#5

[eluser]frans.delacruz@yahoo.com[/eluser]
[quote author="noideawhattotypehere" date="1375950954"]Disable page caching[/quote]


Code in CodeIgniter?..can you post an example
#6

[eluser]noideawhattotypehere[/eluser]
http://www.robertmullaney.com/2011/08/13...deigniter/




Theme © iAndrew 2016 - Forum software by © MyBB