www.webdeveloper.com
Results 1 to 4 of 4

Thread: Product accessible for 24 hours?

  1. #1
    Join Date
    May 2005
    Posts
    2

    Arrow 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!

  2. #2
    Join Date
    Jan 2004
    Location
    Melbourne, Australia
    Posts
    5,298
    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.

  3. #3
    Join Date
    May 2005
    Posts
    2
    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!

  4. #4
    Join Date
    Jan 2004
    Location
    Melbourne, Australia
    Posts
    5,298
    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles