function makeSessionCookie() {
                var cookie = '';
                cookie += 'un=' + sessionObject.username;
                cookie += '|kbase_sessionid=' + sessionObject.sessionId;
                cookie += '|user_id=' + sessionObject.username;
                cookie += '|token=' + sessionObject.token.replace(/=/g, 'EQUALSSIGN').replace(/\|/g, 'PIPESIGN');
                return cookie;
            }
/**
             * Creates an session cookie string from the current session cookie.
             * 
             * @todo this is not a very good encoding method; needs to be fixed
             * @todo e.g. a field value which also contains delimiters.
             * 
             * @function makeSessionCookie
             * @private 
             * 
             * @returns {string|null} a session object formatted into a string
             * suitable for transport in a cookie.
             */
Creates an session cookie string from the current session cookie.

@todo this is not a very good encoding method; needs to be fixed
@todo e.g. a field value which also contains delimiters.



@returns {string|null} a session object formatted into a string
suitable for transport in a cookie.
Creates an session cookie string from the current session cookie . @todo this is not a very good encoding method ; needs to be fixed @todo e . g . a field value which also contains delimiters . @returns { string|null } a session object formatted into a string suitable for transport in a cookie .
function makeSessionCookie() {
                var cookie = '';
                cookie += 'un=' + sessionObject.username;
                cookie += '|kbase_sessionid=' + sessionObject.sessionId;
                cookie += '|user_id=' + sessionObject.username;
                cookie += '|token=' + sessionObject.token.replace(/=/g, 'EQUALSSIGN').replace(/\|/g, 'PIPESIGN');
                return cookie;
            }
function makeSessionCookie ( ) { var cookie = '' ; cookie += 'un=' + sessionObject . username ; cookie += '|kbase_sessionid=' + sessionObject . sessionId ; cookie += '|user_id=' + sessionObject . username ; cookie += '|token=' + sessionObject . token . replace ( / = / g , 'EQUALSSIGN' ) . replace ( / \| / g , 'PIPESIGN' ) ; return cookie ; }
Creates an session cookie string from the current session cookie.
Creates an session cookie string from the current session cookie .