Re: [AngularJS] Shopping cart with checkout in angular JS

2014-08-20 Thread R tget
Well,, the checkout page will post to my api (PHP) from there I will handle all the data... check the payments etc so that will not be a problem... I only need a variable in angular that will stay the same for a session of a user. session_id() in php creates a session id that will stay if its no

Re: [AngularJS] Shopping cart with checkout in angular JS

2014-08-20 Thread Eric Eslinger
This isn't really an angular issue as much as it is a general web-application design issue. But you can do something like set a cookie on the browser with session information, which will persist between connections. Then when the angular app starts up, have it check to see if there's a session cook

Re: [AngularJS] Shopping cart with checkout in angular JS

2014-08-20 Thread R tget
Yes, but in angular is there a way to get a unique session variable for a user? so that i can store this in the DB and if this user comes back he automaticly gets this ID ? Because im working with API... but everytime i call for a session id (php) it gives a new id... Op woensdag 20 augustus 2

Re: [AngularJS] Shopping cart with checkout in angular JS

2014-08-19 Thread Eric Eslinger
You'll probably need to handle this in the typical fashion - store user session data in a session variable, either a session cookie, or stashed in a session store on your backend. e On Tue, Aug 19, 2014 at 12:21 PM, R tget wrote: > Hi im building a shopping cart now on checkout im using extern

[AngularJS] Shopping cart with checkout in angular JS

2014-08-19 Thread R tget
Hi im building a shopping cart now on checkout im using external payment modules. so its get redirected to another site for example paypal and then come back for a thank you page. but if a user selects a payment method and goes back, al the angular data is gone, cart is empty etc. what is the b