php - Only in index page my session wont start not sure because its my host -
only in index page session won't start if go page session start or if go page index page session start. way have set i'm using jquery ajax. if goes through should create session page refreshes session start won't start that's problem.
top section of index page:
ob_start; error_reporting(0); session_set_cookie_params(3600 * 24 * 7, '/', '.example.com'); session_start();
if rid of error_reporting(0)
these errors
session_start() [function.session-start]: cannot send session cookie - headers session_start() [function.session-start]: cannot send session cache limiter
i don't errors in other pages
my guess have content on top php, either whitespace, html, or space before <?php
. can't have on top of <?php
such <div>
..., or <table>
... etc.
check see if do. why you're getting error message of "headers sent
".
Comments
Post a Comment