订购系统中的会话错误 [英] Session error in ordering system

查看:73
本文介绍了订购系统中的会话错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

第一次用户来订购披萨,系统工作没问题。因为没有设置会话变量。

但是如果同一用户在特定时间内进行,那么由于之前的设置变量,他将无法完美地下订单。



如果用户再次下订单或下一个订单,前一个订单来了。

有问题,当我们从订单中删除一个项目时,它不会通过双击或删除或删除三倍因为查询设置的值因为该变量的预设值而无法首次点击。



我试图回显变量,但错误产生声明未定义的偏移。



这里是订购页面的网址: http://www.swanpizza.com/order.php



需要你宝贵的建议。



提前致谢。

First time user come to order pizza, system work's fine. because no session variable set.
but if same user goes within specific time then he will not be able to put order perfectly because of previous set variables.

some time previous order come if user again come to put second or next order.
there is problem, when we delete an item from order, it does not delete or delete by double clicking or triple because values set by query could not be able to come on first click because of preset values of that variable.

I tried to echo the variables but error generates stating "undefined offset".

here is url for ordering page: http://www.swanpizza.com/order.php

Need your valuable suggestions.

Thanks in advance.

推荐答案

我认为最好不要将会话用于订单。相反,您可以使用数据库表来存储订单值。我知道它会存储大量不需要的数据。但您可以设置一个cron作业来删除7天之前下达的订单。这个过程更可靠,我以前在大多数电子商务网站都使用这种技术。
I think its better not to use session for orders. Rather you can use database table to store order values. I know it will store a huge unwanted data. But you can set a cron job to remove the orders placed before 7 days. This process is more reliable and I used to use this technique in most of my e-commerce sites.


我已经解决了这个问题。谢谢大家的支持。
I have solved the issue. Thank you all for your support.


这篇关于订购系统中的会话错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆