Subversion Repositories SmartDukaan

Rev

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

Rev 822 Rev 824
Line 90... Line 90...
90
	private void createUserCookie(long userId, boolean force) {
90
	private void createUserCookie(long userId, boolean force) {
91
		userCookie = (Cookie) cookiesMap.get("uid");
91
		userCookie = (Cookie) cookiesMap.get("uid");
92
		String encryptedUserId = desEncrypter.encrypt(userId + "");
92
		String encryptedUserId = desEncrypter.encrypt(userId + "");
93
		if(force || userCookie == null || !(encryptedUserId + "").equals(userCookie.getValue())){
93
		if(force || userCookie == null || !(encryptedUserId + "").equals(userCookie.getValue())){
94
			userCookie = new Cookie("uid", encryptedUserId);
94
			userCookie = new Cookie("uid", encryptedUserId);
-
 
95
			cookiesMap.put("uid", userCookie);
95
		}
96
		}
96
	}
97
	}
97
	
98
	
98
	private UserSessionInfo createAndGetSessionFromUIDCookie(HttpSession session) {
99
	private UserSessionInfo createAndGetSessionFromUIDCookie(HttpSession session) {
99
		userCookie = (Cookie) cookiesMap.get("uid");
100
		userCookie = (Cookie) cookiesMap.get("uid");