/    Sign up×
Community /Pin to ProfileBookmark

Product accessible for 24 hours?

Greetings! I’m a newb when it comes to some of this and I have a question which I hope I can explain properly. To the moderator, feel free to move this post if it is in the wrong forum, wasn’t sure where to post it.

Ok here’s my problem. I’m selling my product using easyautopro.com as my cart/autoresponder and the whole thing works great except when I actually have to digitally deliver my product. Now this is how it works:

  • my customers purchase from me

  • they then register with website via link I’ve sent them
  • What needs to happen is that using the email address they’ve submitted as a username and the password randomly generated by my autoresponder, they need to access a webpage where the product is available for download. So I need know what to do, and an explaination how to do it, for making it so that one could log into the webpage, and the password and access to the product will only be valid for 24 hours so it couldn’t be shared with others later.

    I have a basic page with username and login boxes but I’m not sure what javascript I would use to make this work or what cookie/sessions I could setup so that it would only last 24 hours. I read about md5.js for the login but I couldn’t get it to work properly.

    The second part to my problem is (maybe something you can’t help me with here), registration on the site is essential if they hope to get the support we offer. Now I’m trying to find out how to make it so that this randomly generated password that is sent by autoresponder can be used so that when the customer registers on the PostNuke CMS and they go into their profile, they can enter the password somewhere which will then give themselves access to private forums. This is something I’ve been asking at pnphpbb.com but not getting any help.

    If this isn’t possible or I’m going about doing these things the wrong way then I’m open to suggestions for other ways to make it so customers can be added to the private forums list AND access the product for 24 hours. Any suggestions welcome!

    to post a comment
    Full-stack Developer

    3 Comments(s)

    Copy linkTweet thisAlerts:
    @buntineMay 31.2005 — To achieve secure authorisation, you will need a database (or a similar means of storage, such as XML) that records user information such as their username, email and password. You can also store the date/time of the registration and run a script each night to clear the database of records older than 24 hours.

    JavaScript based logins should not be trusted.

    Regards.
    Copy linkTweet thisAlerts:
    @PentarixauthorMay 31.2005 — Thank you for your reply buntine!

    I have a mySQL database for PostNuke, would this be sufficient? The script suggestion is a great idea, I'll need to investigate more but honestly don't know where to start, anyone care to point me in the right direction please?

    Thanks!
    Copy linkTweet thisAlerts:
    @buntineMay 31.2005 — MySQL will be fine. I'm guessing PostNuke is written in PHP, so your best bet is to look into that.

    www.php.net has all the relavent software and documentation to get you started. The following yeilds a whole bunch of PHP login tutorials and premade solutions ready for implementation: http://www.google.com.au/search?hl=en&q=php+login&meta=

    Regards.
    ×

    Success!

    Help @Pentarix spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 5.18,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...