Forum Moderators: coopster
PS: after 2 days of searching i found out a very interesting thing: when the value displays corect before AJAX in fact in session directory , if i check inside the file manually i found out that my var is till 0.
any ideas are greatly appreciated.
my problem began developing a shop with ajax; when accesing a page thru ajax in FF http_referer is missing this is why i put a session variable in the header where let's say it was $_SESSION['test']=0; and in the pages like login and other somewhere down i change this var to 1... so i can check it in login.php to be sure the request comes from site;
for the moment works but i don't really know what happened;
yesterday all day i had this problem: print_r($_SESSION) in my pages displayed the values i wanted but in sess_ file on my server the value of test was not changing;
a bit of solution was to put session_start a second time in header after $_SESSION['test']=0; (i did not received any error like already sent i suppose because of output buffering ....)
in this moment the second session_start() is commented and app works
[edited by: Mihai at 4:53 am (utc) on April 16, 2007]