You must Sign In to post a response.
  • Category: ASP.NET

    How to maintain session for users in Angularjs MV* web app development

    Hi All,
    I am developer and just started to learn Angularjs MV* web app development.

    I have issue how to maintain session for users here because no code behind.Please help
  • #762703
    Hai Santosh Kumar Singh,
    As the AngularJS is the client side technology so maintaining session is different here as compare to server side code.
    Here in AngularJS, we can use sessionfactory to create the session and keep the session data as below:

    app.factory('Session', function($http) {
    var session = {
    $http.get('session.json').then(function(a) { return =;});
    return session;

    Hope it will be helpful to you.

    Pawan Awasthi(DNS MVM)
    +91 8123489140 (whatsApp), +60 14365 1476(Malaysia)

Sign In to post your comments