Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Patrick Scott 70 posts 110 karma points c-trib
    Jul 10, 2013 @ 16:58
    Patrick Scott
    1

    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?

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies