Subversion Repositories SmartDukaan

Rev

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

Rev 1511 Rev 1553
Line 51... Line 51...
51
		// If the request is for an active session.
51
		// If the request is for an active session.
52
		UserSessionInfo userInfo = (UserSessionInfo) session.getAttribute(USER_INFO);
52
		UserSessionInfo userInfo = (UserSessionInfo) session.getAttribute(USER_INFO);
53
		
53
		
54
		// Set the userinfo and the uid cookie if they're not already set.
54
		// Set the userinfo and the uid cookie if they're not already set.
55
		if (userInfo == null) {
55
		if (userInfo == null) {
-
 
56
			/* Code for bitwalked. No more used.
56
			if(userAgent.getBrowser().getBrowserType() == BrowserType.WEB_BROWSER){
57
			if(userAgent.getBrowser().getBrowserType() == BrowserType.WEB_BROWSER){
57
				userInfo = createAndGetSessionFromUIDCookie(session);
58
				userInfo = createAndGetSessionFromUIDCookie(session);
58
			}else{
59
			}else{
59
				userInfo = new UserSessionInfo();
60
				userInfo = new UserSessionInfo();
60
			}
61
			}
-
 
62
			*/
-
 
63
			userInfo = createAndGetSessionFromUIDCookie(session);
61
			session.setAttribute(USER_INFO, userInfo);
64
			session.setAttribute(USER_INFO, userInfo);
62
		}
65
		}
63
		else {
66
		else {
64
			// Update user cookie in case of new registration and login.
67
			// Update user cookie in case of new registration and login.
65
		    createUserCookie(userInfo.getUserId(), false);
68
		    createUserCookie(userInfo.getUserId(), false);