i need to run a java script only once when accessing the site for the first time..i want to save a cookie and check it every time site opening if cookie is saved dont need to run the script if cookie is not saved ( it mean first times that using the site ) need to create a new cookie and run the script.. Or we can do it from IP if that ip is on mysql database no to run if not add da ip and run the script.im new to php..still studying. need a help.
Share
In its simplest form:
This only allows a single cookie key=value pair, however. If your site requires other cookies beyond this one (e.g. a session token), you’ll need a bit of infrastructure to set/get/read multiple cookies. Code samples for that are demoed here.