When you get a new order, new row in database table appears. Set it's
confirmed = 0 and when staff refreshes the page (or JS does that every
minute) they would see the new order. As for IP restriction - why would you
want this? Cake's got it's auth, so there's no need to add IP restriction.

As for login that doesn't timeout, create a "ajax pinger", which loads a
page every X minutes to refresh the session info.

Hope this helps,
Faifas


On Wed, Sep 16, 2009 at 10:06, WyriHaximus <[email protected]>wrote:

>
> Another way would be sending a fax but I suppose that takes more time
> to setup and can go wrong easier then having a page open that
> automatically refreshes or sending an email. So yes your right. The
> only thing I would remove is the Ip restriction cause in case their IP
> changes the site has to be updated and those things can take longer
> then the wanted (taken from the moment they find out till the moment
> you changed it).
>
> On Sep 16, 2:54 am, TimG <[email protected]> wrote:
> > Hey,
> > I am developing a website for a local delivery place that will feature
> > online ordering. I am competent enough to build the ordering part of
> > the site but I did have one question for more developed programmers:
> >
> > I need a way for the restaurant to know immediately when someone
> > places an order. The only way I figured how to do it (other than
> > email) was to have a login that doesn't timeout, is only usable from
> > the restaurants IP address and displays the placed orders page. There
> > would need to be a JS on that page that automatically refreshes the
> > page every few minutes. That way it would see any new orders when the
> > page reloads.
> >
> > That's what I came up with - is there a better way to do it?
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to