ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

How to create a secure download area using session or cookies

March 15, 2011 10:43am

Subscribe [2]
  • #1 / Mar 15, 2011 10:43am

    CHIEF

    42 posts

    Hi, the project I am working on at the moment requires a simple form to gather name, email address and contact info, this data is then sent to my clients email address. 

    After the user has filled in their details they are shown a page of downloads.  This page must only be accessible if they have successfully completed the form.

    Could anyone point me in the right direction please? best method? tutorial/example etc..? 

    Many thanks.

  • #2 / Mar 15, 2011 5:40pm

    Boyink!

    5011 posts

    Curious, rather than generate an email why not just have them register into EE’s member management?

    Then you have all of the EE tools - conditionals, member group settings on templates, etc to ensure that they need to be logged in to see the content.

  • #3 / Mar 15, 2011 5:55pm

    CHIEF

    42 posts

    If I had it my way then I would probably just go for the member management option.

    I’m not sure they would go for the option of making the user sign up and create a password, although this would by far be the easiest way.

    Can EE set a session? and then check for session using conditional comments?  if session is set then display download section, otherwise display form..

  • #4 / Mar 15, 2011 6:00pm

    Boyink!

    5011 posts

    There are some session related addons at Devot-ee but I have no experience with them.

    I assume the content isn’t something a user would come back for (and not want to re-fill out a form)?

  • #5 / Mar 15, 2011 6:07pm

    CHIEF

    42 posts

    This is a good point, i guess it would depend on the session life, similar issue for cookies, but then when history is cleared you are faced with the same issue.

    The standard Member management route will be far more robust, I will try and sell the idea to the client. Do you know of any tutorials on using the EE member management as I havent used this in EE yet?

    (Im not sure what the content of the site is yet by the way, I have just been estimating for it)

    Thanks Mike.

  • #6 / Mar 15, 2011 6:14pm

    Boyink!

    5011 posts

    I think long-term you and the client will be better off.  More robust, and easier to stay connected with people given that you have their data stored in a db.

    I have http://www.train-ee.com/courseware/screencasts/detail/members-only-content-and-workflow/ - it’s mid 1.6 but other than the EE 2 UI changes there’s nothing new about EE’s abilities in the members-only content area.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases