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.
No Session in Custom WebUserLocator for Mobile
- ForumsAdmin
- AbleCommerce Moderator
- Posts: 399
- Joined: Wed Mar 13, 2013 7:19 am
Re: No Session in Custom WebUserLocator for Mobile
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.