我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

在cookie过期时,删除MySQL行

I want to delete the row on the MySQL table corresponding with the cookie when the cookie expires or is deleted. How would I do this using PHP?

You can't do that directly. The best hope you have is to have an expires column in your database, which saves the date/time at which the cookie expires, then you could have a cron script to delete the expired rows.

近期文章

  • 引用动态变量?
  • TCPDF中的像素尺寸不正确
  • 调度控制器zf2事件管理器
  • dynamic_sidebar在所有小部件之后写入“1”
  • 使用typo3中的函数更新查询
  • 如果isHTML,PHPMailer不会发送电子邮件(true)
  • 使用.htaccess从子域中排除Crawler
  • Laravel 4:无法生成URL,因为此类路由不存在
  • 使用PHP更改ISO8601日期格式
  • PHP数组元素作为SQL IN运算符的参数
  • 如何创建codeigniter url到人类友好的URL?
  • 每10分钟最大的Facebook API请求数?
  • 从关联数组php中删除项目
  • 如何从Twig中提取从HTML解析的纯文本?
  • Laravel在Controller where子句中的条件
  • 500内部服务器错误CodeIgniter htaccess mod_rewrite
  • 我有一个语法错误,意外的'::'
  • PHP SimpleXML显示不规则的子节点
  • 如何在PHP中按值加入重复数组?
  • 如何在PHP中打印对象中的字符串

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华