No Session in Custom WebUserLocator for Mobile
Posted: 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.
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.