sessions
Posted: Tue Apr 20, 2004 5:52 am
im a bit confused with sessions though
should i put start_session(); on every page including my index.php page which is my homepage.
i have these files before a user logs in
forgot password
register
home
when a user logs in they have access to
poll
change password
guestbook
do i have to put include session_start; on every page its just ive included it on guestbook and it comes up with this error
A session had already been started - ignoring session_start() and the same message on the change password page.
im not using sessions on the guest book page or the change password page is that why? Its just i though you had to include start_session() on every page you view once logged in? is this correct or am i doing something wrong
please can someone advise me what to do and which pages should include sessions?
should i put start_session(); on every page including my index.php page which is my homepage.
i have these files before a user logs in
forgot password
register
home
when a user logs in they have access to
poll
change password
guestbook
do i have to put include session_start; on every page its just ive included it on guestbook and it comes up with this error
A session had already been started - ignoring session_start() and the same message on the change password page.
im not using sessions on the guest book page or the change password page is that why? Its just i though you had to include start_session() on every page you view once logged in? is this correct or am i doing something wrong
please can someone advise me what to do and which pages should include sessions?