title: $rootscope value used in a controller is overridden when refreshing the page used with that controller
body: <p>In my angularjs page I am passing a global data to another controller using the $rootscope object of angularjs. In my controller i am successfully able to catch the value stored in $rootscope object and the value is populating correctly and i am using the value in a label contol. But when I am refreshing the page the value is getting disappeared . What is the problem in this and how cam I overcome this situation.</p>
  
  <p>$scope.loginname = $rootScope.curusername;</p>
  
  <p>Thanks and regards
  Utpal</p>