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? Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.