Subversion Repositories SmartDukaan

Rev

Rev 22155 | Rev 22166 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 22155 Rev 22160
Line 139... Line 139...
139
		for(RoleType roleType : fofoDetails.getRoleTypes()) {
139
		for(RoleType roleType : fofoDetails.getRoleTypes()) {
140
			roleNames.add(roleType.toString());
140
			roleNames.add(roleType.toString());
141
		}
141
		}
142
		Cookie cookieRoleNames = new Cookie(ProfitMandiConstants.ROLE_NAMES, String.join(",", roleNames));
142
		Cookie cookieRoleNames = new Cookie(ProfitMandiConstants.ROLE_NAMES, String.join(",", roleNames));
143
		cookieRoleNames.setDomain(request.getServerName());
143
		cookieRoleNames.setDomain(request.getServerName());
144
		cookieRoleNames.setPath("/");
144
		cookieRoleNames.setPath(request.getContextPath());
145
		
145
		
146
		Cookie cookieFofoId = new Cookie(ProfitMandiConstants.FOFO_ID, String.valueOf(fofoDetails.getFofoId()));
146
		Cookie cookieFofoId = new Cookie(ProfitMandiConstants.FOFO_ID, String.valueOf(fofoDetails.getFofoId()));
147
		cookieFofoId.setDomain(request.getServerName());
147
		cookieFofoId.setDomain(request.getServerName());
148
		cookieFofoId.setPath("/");
148
		cookieFofoId.setPath(request.getContextPath());
149
		
149
		
150
		Cookie cookieEmailId = new Cookie(ProfitMandiConstants.EMAIL_ID, fofoDetails.getEmailId());
150
		Cookie cookieEmailId = new Cookie(ProfitMandiConstants.EMAIL_ID, fofoDetails.getEmailId());
151
		cookieEmailId.setDomain(request.getServerName());
151
		cookieEmailId.setDomain(request.getServerName());
152
		cookieEmailId.setPath("/");
152
		cookieEmailId.setPath(request.getContextPath());
153
 
153
 
154
		Cookie fofoFlagCookie = new Cookie(ProfitMandiConstants.FOFO_FLAG, Boolean.toString(fofoDetails.isFofo()));
154
		Cookie fofoFlagCookie = new Cookie(ProfitMandiConstants.FOFO_FLAG, Boolean.toString(fofoDetails.isFofo()));
155
		fofoFlagCookie.setDomain(request.getServerName());
155
		fofoFlagCookie.setDomain(request.getServerName());
156
		fofoFlagCookie.setPath("/");
156
		fofoFlagCookie.setPath(request.getContextPath());
157
		
157
		
158
		response.addCookie(cookieFofoId);
158
		response.addCookie(cookieFofoId);
159
		response.addCookie(cookieEmailId);
159
		response.addCookie(cookieEmailId);
160
		response.addCookie(cookieRoleNames);
160
		response.addCookie(cookieRoleNames);
161
		response.addCookie(fofoFlagCookie);
161
		response.addCookie(fofoFlagCookie);