public ActionResult Logout()
        {
            //standard logout
            _authenticationService.SignOut();
            SharedInfo _SharedInfo = new SharedInfo();

            #region Modify code to use SharedInfo class instead of cookie :By Rachna singh on 23/Sep/2013.
            // string _cookiePrefix = _config.GetStringValueFromConfig("cookiePrefix", "NewspaperARCHIVE.com");
            //if ((Request.Cookies[_cookiePrefix + ".Validation"] != null && Request.Cookies[_cookiePrefix + ".Validation"].HasKeys))
            //{
            //    int UserId = _common.GetIntegerValue(Na.Core.Helpers.SecureNPASecurity.Encryption.DecryptText(_common.GetStringValue(Request.Cookies[_cookiePrefix + ".Validation"].Values["userid"], "")), 0);
            //    _userService.RemoveUserSession(UserId);
            //}
            if (_SharedInfo.LoggedInUserInfo.User.UserId > 0)
            {
                int UserId = _SharedInfo.LoggedInUserInfo.User.UserId;
                _userService.RemoveUserSession(UserId);
            }
            #endregion

            ExpireCookie();
            Session.Abandon();
            //  return RedirectToAction("Index", "Homev5");
            return Redirect(Na.Core.Configuration.NaConfig.Url.DomainUrl.ToString());
        }
        //
        // GET: /Login/
        public ActionResult Index()
        {
            var model = new LoginModel();
            model.forgotMessage = string.Empty;
            model.loginMessage = string.Empty;
            model.ReturnUrl = string.Empty;
            if (!string.IsNullOrWhiteSpace(Request.QueryString["ReturnUrl"])) { model.ReturnUrl = Request.QueryString["ReturnUrl"]; }
            if (string.IsNullOrWhiteSpace(model.ReturnUrl)) { if (!string.IsNullOrWhiteSpace(_common.GetStringValue(Request.UrlReferrer, ""))) { model.ReturnUrl = _common.GetStringValue(Request.UrlReferrer, ""); } }
            //************************   Added By Rakesh on 15 July 2013 to Implement the Remember Me Functionality    *********
            var CheckASPXAUTHCookie = GetCookieValue(FormsAuthentication.FormsCookieName);
            if (CheckASPXAUTHCookie != "")
            {
                var LoginCredentials = FormsAuthentication.Decrypt(CheckASPXAUTHCookie);  // By Rakesh-II
                GetCookeValuesForNextLogin(LoginCredentials.UserData, model); // update credentials in Model
                var LastReturnPath = "";
                /* if last return path is null then  get the value from  model.ReturnUrl as returned from some
                 * other page & afer validatin we need to show that respective page  eg : my account Controller page*/
                if (!string.IsNullOrWhiteSpace(Request.QueryString["RequestURL"]))
                {
                    LastReturnPath = Request.QueryString["RequestURL"];
                    model.ReturnUrl = LastReturnPath;
                }
                else
                {
                    LastReturnPath = model.ReturnUrl;//Na.Core.Configuration.NaConfig.Url.DomainUrl + "/" + model.ReturnUrl;
                }
                // added by Rachna/S on 6 feb 2014 to reduce the time taken on Login hit
                SharedInfo _sharedInfo = new SharedInfo();
                int iUserID = _sharedInfo.LoggedInUserInfo.User.UserId;
                if (iUserID <= 0)
                {
                    Reset(model, model.ReturnUrl); // this has to be run only when no user is loggined and try to hit login action
                }
                // Below is returend true user validated Successfully , if not then check existance of cookie and set(lbloginIfValidateFromCookie) this to false
                if (lbloginIfValidateFromCookie == true)
                {
                    /*
                     * If referrer or last returnurl  contains  login in  then we need to redirect it to the myaccount page
                     * By Vishant Garg 29-08-2013SSSS
                     */
                    if (!String.IsNullOrEmpty(LastReturnPath) && !LastReturnPath.ToLower().Contains("login"))
                        return Redirect(LastReturnPath);
                    else
                        return Redirect(Na.Core.Configuration.NaConfig.Url.DomainUrl + "/myaccount");
                    //if (!string.IsNullOrEmpty(LastReturnPath))
                    //    return Redirect(LastReturnPath);
                }

            }
            //  *************************  End of Changes    **************************

            return View(model);
        }