Hi Sander, Thank for your contribution, But the problem is not solved I've tried with the sequence and also tried to make rest call with the same httpClient object but still, It's not working.
I've used the JQuery library to make server calls but angular is preventing me to keep track of client session. Without angular, I've tried the same JQuery Statement with (HTML + Javascript) and It's working. How should I configure angular to handle session at the server side? Sequence Example : this.http.post("http://192.168.1.93:3000/login",{username:"someone", password:"1234"}).subscribe(res => { this.loginStatus = res["msg"]; this.http.post("http://192.168.1.93:3000/dashboard",{data:"nothing"}). subscribe( res => { this.dashboardStatus = res["msg"] this.http.post("http://192.168.1.93:3000/logout",{data:"nothing"}).subscribe( res => { this.logoutStatus = res["msg"] }); }); }); Regards Rahul J On Monday, February 25, 2019 at 7:11:29 PM UTC+5:30, Sander Elias wrote: > > Hi Rahul, > > this.http.post("http://192.168.1.93:3000/login",{username:"someone",password:"1234"}) > .subscribe(res => { this.loginStatus = res["msg"] }); > this.http.post("http://192.168.1.93:3000/dashboard",{data:"nothing"}) > .subscribe( res => { this.dashboardStatus = res["msg"] } ); > this.http.post("http://192.168.1.93:3000/logout",{data:"nothing"}) > .subscribe( res => { this.logoutStatus = res["msg"] }); > > Those will fire off at the same time and will communicate in parallel with > your server. So the output is correct. Make sure you do this in order > instead. That will give you the result you want. > > Regards > Sander > > -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.