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

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -