No Session in Custom WebUserLocator for Mobile

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
jason859
Ensign (ENS)
Ensign (ENS)
Posts: 3
Joined: Mon Dec 02, 2013 2:16 pm

No Session in Custom WebUserLocator for Mobile

Post by jason859 » Mon Dec 02, 2013 3:42 pm

Hi,

I have created a Custom WebUserLocator to intercept users coming to the site and check for an encrypted packet. If the packet information is valid, I set up the user/group information if necessary, authenticate the user and store the passed information in the session. If an IUserLocator service is called and there is already valid information in the session, I pass off the call to the regular WebUserLocator. This system is working fine on the normal site. But if mobile browsing is enabled, a "server error" is returned. If the mobile browsing is not enabled and the user views the full site from a mobile device, there is no error. The error occurs when I try to store the information in the session. The HttpContext is valid but the session object is null. Has anyone encountered an issue with a null session for mobile requests? Is there a way I can force the session object to be initialized immediately if a test for null returns true?

Thanks for any help you can give.

User avatar
ForumsAdmin
AbleCommerce Moderator
AbleCommerce Moderator
Posts: 399
Joined: Wed Mar 13, 2013 7:19 am

Re: No Session in Custom WebUserLocator for Mobile

Post by ForumsAdmin » Tue Dec 03, 2013 2:06 am

You will need to figure out the details of the 'server error'. Check the logs and see the exception details. You will find useful information there that will point to the right direction.

Post Reply