swordsinfo
New Member
Hi guys
I am trying to implement a session check but its throwing a warning as I am tec calling session_start() twice.
Basically I have a main.php page that has a ajax call to ajax.php page. I want to access the session in both the main.php page and ajax.php page however to do this I have to call session_start() in both pages which is throwing a warning: Warning: session_start(): Cannot send session cache....
I have suppressed it by using the @session_start() but anyone ideas to do this the "right way"
The session info is for CSRF check so the ajax page cannot be called either off site or directly - using 'xmlhttprequest' also just incase anyone suggests this
I am trying to implement a session check but its throwing a warning as I am tec calling session_start() twice.
Basically I have a main.php page that has a ajax call to ajax.php page. I want to access the session in both the main.php page and ajax.php page however to do this I have to call session_start() in both pages which is throwing a warning: Warning: session_start(): Cannot send session cache....
I have suppressed it by using the @session_start() but anyone ideas to do this the "right way"
The session info is for CSRF check so the ajax page cannot be called either off site or directly - using 'xmlhttprequest' also just incase anyone suggests this