dqfsbvd43312 2012-06-25 14:51 采纳率: 0%
浏览 64
已采纳

什么更安全$ _POST或$ _SESSION?

I'm using the great jquery-file-upload image uploader, but need to store images for different users in subfolders. I can do this either by sending the name of the folder as a $_POST arg to upload.class.php or retrieve the name as a $_SESSION arg.

Is there a preference for security?

  • 写回答

3条回答 默认 最新

  • douzhuang1900 2012-06-25 14:54
    关注

    If the folder name is to be inputted by the user, it should be in a $_POST variable with an appropriate form.

    If it is a variable to be determined by the server, per user, it should be a $_SESSION variable.

    There's no question of security here, there's a question of which is more appropriate for the required functionality.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥15 如何绘制动力学系统的相图
  • ¥15 对接wps接口实现获取元数据
  • ¥20 给自己本科IT专业毕业的妹m找个实习工作
  • ¥15 用友U8:向一个无法连接的网络尝试了一个套接字操作,如何解决?
  • ¥30 我的代码按理说完成了模型的搭建、训练、验证测试等工作(标签-网络|关键词-变化检测)
  • ¥50 mac mini外接显示器 画质字体模糊
  • ¥15 TLS1.2协议通信解密
  • ¥40 图书信息管理系统程序编写
  • ¥20 Qcustomplot缩小曲线形状问题
  • ¥15 企业资源规划ERP沙盘模拟