adam84 Posted April 4, 2007 Share Posted April 4, 2007 I am attempting to create a site using only ajax. When I came to the setting of a cookie, I read that you need to set the cookie before the <HTML>, but since I am using AJAX, my <HTML> is already there. Is it possible? Link to comment https://forums.phpfreaks.com/topic/45491-ajax-and-cookies/ Share on other sites More sharing options...
mainewoods Posted April 5, 2007 Share Posted April 5, 2007 a cookie can be set/retrieved with javascript: document.cookie=?? http://www.w3schools.com/js/js_cookies.asp or if you are calling a server programming page like php through ajax, then you can set/retrieve a cookie using the functions of php or your other server programming language. Link to comment https://forums.phpfreaks.com/topic/45491-ajax-and-cookies/#findComment-221783 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.