I am implementing one of the new IContentFinder classes in 6.1.1 and I need to access the session state from here. This class is used to serve different content nodes to mobile devices.
I have got the mobile side all working fine, but I need the user on amobile to 'opt out' of mobiel and browse the desktop site if they want to. I am using the querystring on the 'opt out' link to tell the code to show the desktop site, but I need to save this into the session object so the system knows to always show the desktop site to this user.
I can get the System.Web.HttpContext.Current.Request object fine, but the System.Web.HttpContext.Current.Session object is null. Any ideas?
accessing session state in an IContentFinder
I am implementing one of the new IContentFinder classes in 6.1.1 and I need to access the session state from here. This class is used to serve different content nodes to mobile devices.
I have got the mobile side all working fine, but I need the user on amobile to 'opt out' of mobiel and browse the desktop site if they want to. I am using the querystring on the 'opt out' link to tell the code to show the desktop site, but I need to save this into the session object so the system knows to always show the desktop site to this user.
I can get the System.Web.HttpContext.Current.Request object fine, but the System.Web.HttpContext.Current.Session object is null. Any ideas?
is working on a reply...