I have an update feature in my site, which updates all the users files
I have a button with the text “update at next login” on the updater which when clicked sets the cookie “Update At Next Login” to “True”
and i have this php code:
[code=php]
if(@!isset($_COOKIE[“Update At Next Login”])) {
//display updater here
}else{
//display updater button here
}
so basically when the page refreshes if the cookie doesn’t exist it will display the updater, and if the cookie does exist it displays a button instead.
But the php code doesn’t work :mad:.
I have also tried:
[code=php]
if(@$_COOKIE[“Update At Next Login”] != True) {
//display updater here
}else{
//display updater button here
}