In codeigniter, After login if I click the browser back button, I got back to the login page -


i have created login page first line if session->userdata() exist redirect home. after login when click button, login page. expected session check work it's not, help?

i think may you.

add in controller function prevent caching of previous page

header("cache-control: no-store, no-cache, must-revalidate"); header("cache-control: post-check=0, pre-check=0", false); header("pragma: no-cache"); header("expires: sat, 26 jul 1997 05:00:00 gmt"); 

Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -