In chapter 12, cookies and sessions, we change the cookies to sessions. I've done this but now, whenever I log in, it redirects me to the index page, logged out again. I've added the
session_start();
to every page necessary - the login, loggedin, index, other pages, loguit, all of them! And it doesn't work :( I've done it exactly as in the book, checked it several times. Has anyone else had this issue?
Sessions not working
in PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide (5th Edition)
Posted
Hey guys!
In chapter 12, cookies and sessions, we change the cookies to sessions. I've done this but now, whenever I log in, it redirects me to the index page, logged out again. I've added the
session_start();
to every page necessary - the login, loggedin, index, other pages, loguit, all of them! And it doesn't work :( I've done it exactly as in the book, checked it several times. Has anyone else had this issue?