PHP isn't saving session when it's an ajax call

buibeSwAphbub

New Member
Hi all,
i'm testing out a service for internal ads on our website...
I need to save internal session (PHP) to know what ads have been displayed and some other protection stuff... The problem is that if i access to the API throught webbrowser GET or POST it does session (and saves the cookie of php session), but if i use \[code\]jQuery.ajax()\[/code\] method it doesn't save it... My link for tests is http://search.microdual.com
(this is because i wanted a customized google search on my laptop :p)I suggest you to use firebug to take a look at the javascript code. (PHP code isn't needed because it is working on clicks...)To simplify the debugging, i print out on response json array from server the session id on the var \[code\]{id_sessao:"..."}\[/code\]...Thanks in advance,
Jos
 
Back
Top