Subversion Repositories SmartDukaan

Rev

Rev 458 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 458 Rev 507
Line 28... Line 28...
28
			this.isLoggedIn = true;
28
			this.isLoggedIn = true;
29
			this.userId = userId;
29
			this.userId = userId;
30
			this.sessionId = (new Date()).getTime();
30
			this.sessionId = (new Date()).getTime();
31
			this.email = Utils.getEmailId(userId);
31
			this.email = Utils.getEmailId(userId);
32
			this.nameOfUser = Utils.getNameOfUser(userId);
32
			this.nameOfUser = Utils.getNameOfUser(userId);
33
			this.totalItems = 0;
33
			//this.totalItems = 0;
34
			this.cartId = -1;
34
			//this.cartId = -1;
35
			//this.totalItems = Utils.getNumberOfItemsInCart(Utils.getCartId(userId));
35
			this.cartId = Utils.getCartId(userId);
36
			//this.cartId = Utils.getCartId(userId);
36
			this.totalItems = Utils.getNumberOfItemsInCart(this.cartId);
-
 
37
			
37
		}
38
		}
38
		else{
39
		else{
39
			this.isLoggedIn = false;
40
			this.isLoggedIn = false;
40
			this.userId = -1;
41
			this.userId = -1;
41
			this.sessionId = userId;
42
			this.sessionId = userId;