Copied to clipboard

Flag this post as spam?

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


  • Kyle Skrinak 272 posts 327 karma points
    Apr 21, 2011 @ 22:30
    Kyle Skrinak
    0

    Session tracking whether user clicked "I accept" style button

    I am about to start a web site that requires the user click an "I accept" style button to signify they agree to terms and conditions. This session data should be reset upon the next visit.

    The workflow would be:

    User visits home page. Page has links to sections of the site. If the session variable is not set, and the user clicks on any link, she goes to the "terms acceptance" page. This "terms acceptance" page is really a simple set of two links, i.e., "Enter" and "Return to home page" Clicking on the "Enter" link sets the session variable and redirects the user to the "accepted" landing page. The other link simply returns the user back to the home page.

    Any recommendations on how to implement this?

    Thanks!

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Apr 22, 2011 @ 09:35
    Sebastiaan Janssen
    0

    I would just build a simple usercontrol, which sets a cookie when the "accept" checkbox is checked. On all of the pages except the homepage you can put a usercontrol that checks the cookie value and does a redirect to home if the cookie is not set correctly.

    I wouldn't use sessions for this by the way, when a recycle on the server occurs, the user has to accept the terms again.

  • Kyle Skrinak 272 posts 327 karma points
    Apr 25, 2011 @ 11:00
    Kyle Skrinak
    0

    Thanks Sebastiaan. I was hoping my requirements were too exotic that I'd need a VS setup to make this happen.

Please Sign in or register to post replies

Write your reply to:

Draft