מהצצה מהירה בשגיאה אני רואה בעצם שהוא אומר שהוא לא יכול לבצע את ה session_start כי נשלחו כבר headers.
כאשר אתה רוצה לשמור עוגיות או משתני session (וכנראה גם כשאתה רוצה לעשות session_start) יש צורך לעשות את זה לפני ששולחים קוד HTML כלשהו.
תנסה להעביר את 2 השורות
session_cache_limiter("nocache"); //sets the cache limiter for the session for the current script run (nocache => avoiding from the browser to save the content of the page in his cache, the page refreshes every time you enter)
session_start(); //starting the session
לתחילת המסמך (כמובן בתוך תגי <? ?> )
|