Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 13 of 13

Thread: Involuntary logging out

  1. #1
    gleapman is offline Member
    Join Date
    Apr 2009
    Location
    Golden, CO
    Posts
    45

    Default Involuntary logging out

    From time to time we have customers report being logged out while using the website. This is from an email we received from a customer yesterday:

    "I can do about two or three clicks through the website and it drops me (logs me out)."

    That particular user has reported this issue several times.

    The site is version 8.0.1.0.

    Any idea what could be causing that?

    Thanks.

  2. #2
    ZachJ85 is offline Senior Member
    Join Date
    Apr 2010
    Location
    Philadelphia, PA
    Posts
    99

    Default

    Is it just jumping from page to page or adding items to the cart?
    SQL 2008, Visual Studio 2010
    Source: C#
    Version: AspDotNetStorefront ML 8.0.1.1/8.0.1.1
    Framework: .Net 4.0 (Running)

  3. #3
    gleapman is offline Member
    Join Date
    Apr 2009
    Location
    Golden, CO
    Posts
    45

    Default

    Not sure I understand your question.

    Do you mean did it log out while she was jumping from page to page or adding items to the cart? If so, I don't know.

    On the other hand, the person who yesterday reported being logged out involuntarily also reported that her wish list vanished. Disappearing wish lists is an issue several other aspdotnetstorefront sites have reported (in another thread - http://forums.aspdotnetstorefront.co...p?t-20878.html) over the past year. That issue has not been resolved. Wonder if the two things are related?
    Last edited by gleapman; 11-30-2010 at 08:32 AM. Reason: clarify

  4. #4
    ZachJ85 is offline Senior Member
    Join Date
    Apr 2010
    Location
    Philadelphia, PA
    Posts
    99

    Default

    Check in AppConfig if GoNonSecure is set to 'false'. This sounds a bit like an issue I had before.
    SQL 2008, Visual Studio 2010
    Source: C#
    Version: AspDotNetStorefront ML 8.0.1.1/8.0.1.1
    Framework: .Net 4.0 (Running)

  5. #5
    gleapman is offline Member
    Join Date
    Apr 2009
    Location
    Golden, CO
    Posts
    45

    Default

    Just checked reports of involuntary logging out over the past four months. There have been only three, but in each case the logging out and disappearing wishlist happened at the same time. Assuming they are related some way, I'll need to explore which is happening first and causing the second.

    I do have some custom code on my wishlist, so it could be something I did. (The custom code retains the wishlist items in the wishlist after they are added to the cart and allows for setting quantities before moving an item to the cart.) But we have dozens of customers regularly using their wishlists and only a few reports of problems. Also, as mentioned in the previous post, several other aspdotnetstorefront sites have reported disappearing wishlists.

  6. #6
    gleapman is offline Member
    Join Date
    Apr 2009
    Location
    Golden, CO
    Posts
    45

    Default

    ZachJ85, thanks for the suggestion. I see that the recommended setting is 'false.' Did changing the setting to 'true' cause any problems on your site?

    I'll do some additional research and if I don't see any reports of issues with a 'true' setting or some other compelling reason to keep it at 'false' I'll run a test tonight. (99% of site visits happen during business hours.)

  7. #7
    ZachJ85 is offline Senior Member
    Join Date
    Apr 2010
    Location
    Philadelphia, PA
    Posts
    99

    Default

    Hey, when the previous guy working here configured the site he had it set to 'true' and users would get logged out and lose their cart when they browsed the site or added random items to the cart.

    I changed that to 'false' and added a line of code which corrected this issue for us.

    Keep us all updated in what you find.


    Zach
    SQL 2008, Visual Studio 2010
    Source: C#
    Version: AspDotNetStorefront ML 8.0.1.1/8.0.1.1
    Framework: .Net 4.0 (Running)

  8. #8
    gleapman is offline Member
    Join Date
    Apr 2009
    Location
    Golden, CO
    Posts
    45

    Default

    Zach, Thanks for clarifying. Must have read your earlier post too quickly and thought you were suggesting I change the setting to 'true.' I'll leave it at false and spend time trying to determine if there is a connection between the forced log-out and the wishlist disappearing.

    But, I think you may be right that it could be an SSL issue. I found another thread that's now closed that reported forced logout issues as site pages mysteriously jumped between http to https. That gives me another area to explore.
    Last edited by gleapman; 12-01-2010 at 07:52 AM. Reason: add

  9. #9
    gleapman is offline Member
    Join Date
    Apr 2009
    Location
    Golden, CO
    Posts
    45

    Default

    Here's one scenario we discovered that is forcing a logout on both of the sites we manage. We suspect there are other scenarios out there.

    This assumes "UseSSL" appconfig is set to true and "GoNonSecureAgain" appconfig is set to false.

    Log in and go to a product page. (Your pages are now all https.) On the product page, click the button that saves the item to the wish list. On the wish list page, click either of the 'Continue Shopping..' buttons.

    Our experience is that the last click takes you back to the product page, but you are logged out and it's now an http page. Then, when we log back in, the wish list has been wiped out, as have any items we had in the shopping cart.

    Interested to hear if others get a different outcome.

    As a temporary fix, we just set visible=false on the two Continue Shopping button on the wishlist page.

  10. #10
    bounce10 is offline Junior Member
    Join Date
    Aug 2010
    Posts
    11

    Default

    Have you continued to see this problem? Another potential is your host provider. If you use shared hosting at Applied Innovations (some others do this also), they have a hard cutoff on your RAM. Meaning, they wipe all sessions if you cross your account's RAM limit. We had this issue with several sites.

  11. #11
    cjbarth is offline Senior Member
    Join Date
    Oct 2008
    Posts
    392

    Default

    I'm over at an ASPDNSF recommended hosting provider: Server Intellect. How do I find out if this is my issue?
    ML9.3.1.1
    SQL 2012 Express
    VS 2010
    Azure VM

  12. #12
    Vegarari is offline Member
    Join Date
    Nov 2006
    Posts
    35

    Default

    We run 8.0.1.2, the same AppConfigs and confirm the following to be true;

    Quote Originally Posted by gleapman View Post
    This assumes "UseSSL" appconfig is set to true and "GoNonSecureAgain" appconfig is set to false.

    Log in and go to a product page. (Your pages are now all https.) On the product page, click the button that saves the item to the wish list. On the wish list page, click either of the 'Continue Shopping..' buttons.

    Our experience is that the last click takes you back to the product page, but you are logged out and it's now an http page. Then, when we log back in, the wish list has been wiped out, as have any items we had in the shopping cart.
    Has this been fixed in 8.0.1.4?

  13. #13
    jsimacek is offline Senior Member
    Join Date
    Dec 2008
    Location
    Phoenix, AZ
    Posts
    373

    Default

    Another cause of this we found is if the template has a hardcoded menu/links with http/https in them... always use relative links.
    Jan Simacek - Compunix, LLC
    AspDotNetStorefront trusted Devnet Partner and Reseller since 2005

    AspDotNetStorefront Mods and Add-Ons at http://www.ecommercecartmods.com/
    - Searching, Filtering and Sorting (like cSearch, Dealer Locator, Price Ranges, Blog)
    - Reports (like Cart Abandonment and Net Sales)
    - Customer Experience (like Question/Answers)
    - Site and Data Management (like Entity Product Mapper, Bulk Updaters, Make/Model/Year filters)