tag:blogger.com,1999:blog-3945433340473224396.post7545956575948305298..comments2024-02-12T22:38:32.637-08:00Comments on Make It Easy: Set headers for all $http calls in angular jsPrashobhhttp://www.blogger.com/profile/00289297725972004641noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-3945433340473224396.post-44105202083851809222017-10-21T09:37:02.164-07:002017-10-21T09:37:02.164-07:00As we put in the cookie you can access $rootScope....As we put in the cookie you can access $rootScope.user until you clear the cookie , for example page refreshing etc. You can destroy the cookie once the user is logged out .Prashobhhttps://www.blogger.com/profile/00289297725972004641noreply@blogger.comtag:blogger.com,1999:blog-3945433340473224396.post-45237903593924023292017-10-19T23:17:44.900-07:002017-10-19T23:17:44.900-07:00You are setting the value to a cookie and never us...You are setting the value to a cookie and never used it. Also, what's the purpose of having $cookieStore.put( 'yourmodule', $rootScope.user );this line? I'm trying to use interceptor concept.<br /><br />Thanks!Aruna Pererahttps://www.blogger.com/profile/05912889360032504022noreply@blogger.comtag:blogger.com,1999:blog-3945433340473224396.post-14500195970370322342016-05-16T12:50:57.595-07:002016-05-16T12:50:57.595-07:00goodgoodAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-3945433340473224396.post-1440815378539248892016-04-19T22:37:45.052-07:002016-04-19T22:37:45.052-07:00Thanks prashodh.Thanks prashodh.Anonymoushttps://www.blogger.com/profile/07921392766287685448noreply@blogger.comtag:blogger.com,1999:blog-3945433340473224396.post-12871549908298905672016-04-17T22:18:47.383-07:002016-04-17T22:18:47.383-07:00This token will be validated from service (Java or...This token will be validated from service (Java or .net or what ever )accordingly you can make your user login or logut from application. Prashobhhttps://www.blogger.com/profile/00289297725972004641noreply@blogger.comtag:blogger.com,1999:blog-3945433340473224396.post-67715003509567451322016-04-17T03:20:07.076-07:002016-04-17T03:20:07.076-07:00It's good post,but I bit confuse that what doe...It's good post,but I bit confuse that what does use of loginticket and how does it works?Anonymousnoreply@blogger.com