Bug, when loggin out, also empties basket

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
14 years ago
Hi I am using nop v. 1.4

I can see that when logging out the system also empties shopping basket.

I think it probably destroys all sessions.

In my mind it is a bug, you should be allowed to login / out without the basket being emptied.

This is the function that I think should be updated to ensure that the basket still exists:

  /// <summary>
        /// Logout customer
        /// </summary>
        public static void Logout()
        {
            //bool flag = NopContext.CheckSessionParameters();
            //if (flag)
            //{
            //    CustomerSession session = NopContext.Current.Session;
            //    if (session != null)
            //    {
            //        session.IsExpired = true;
            //        SaveCustomerSession(session.CustomerSessionGUID, session.CustomerID, session.LastAccessed, session.IsExpired);
            //    }
            //}
            NopContext.Current.ResetSession();

            if (HttpContext.Current.Session != null)
                HttpContext.Current.Session.Abandon();
            FormsAuthentication.SignOut();
        }



B.R

Chris
14 years ago
never had this problem - (using v1.4)

can log in / out and basket contents are kept stored
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.