Results 1 to 7 of 7
  1. #1
    Join Date
    Dec 2009
    Posts
    13
    Plugin Contributions
    0

    Default Protected user specific folder

    I need a way to programatically create a user-specific folder and password protect the contents so only the specific user can see whats inside (an html file).
    It can be either the user can only see it after logging in to his zen cart account or it can be outside zen cart. The user will be issued this folder password after making a purchase through zen cart.
    Can anyone make recommendations on a good strategy for this?

  2. #2
    Join Date
    Dec 2009
    Posts
    13
    Plugin Contributions
    0

    Default Re: Protected user specific folder

    Nobody has done anything like this before?

  3. #3
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Protected user specific folder

    Usually, you can password-protect folders in your hosting account's control panel, if I understand your question.

  4. #4
    Join Date
    Dec 2009
    Posts
    13
    Plugin Contributions
    0

    Default Re: Protected user specific folder

    Yes, but I wanted to do this programatically when a new user creates a Zen Cart account.
    I guess I can do it with PHP. Not sure which zen cart file to put it in though.

  5. #5
    Join Date
    Dec 2009
    Posts
    13
    Plugin Contributions
    0

    Default Re: Protected user specific folder

    Basically:

    1. user creates Zen Cart account
    2. password protected folder gets created automatically
    3. user purchases a report
    4. report gets generated automatically
    5. report gets put in users password protected folder automatically
    6. user gets an email telling them their report is ready and with a hyperlink to the report
    7. user clicks the link in the email
    8. user enters password (and/or logs in to zen account)
    9. user views report


    these reports are of a secure nature and must not be viewable by anyone else. They are html reports each with a subfolder containing other html files and images

  6. #6
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Protected user specific folder

    That's a lot of custom coding - maybe post in the Commercial Help Wanted forum.

  7. #7
    Join Date
    Dec 2009
    Posts
    13
    Plugin Contributions
    0

    Default Re: Protected user specific folder

    Quote Originally Posted by stevesh View Post
    That's a lot of custom coding - maybe post in the Commercial Help Wanted forum.
    How would a person go about doing it?

    Create a folder that is somehow contents protected from everyone except a single zen cart user?

    The folder would have to be programmatically created and permissions set. Then before allowing a user to view the html files within it would have to check the users zen cart session ID.

    Or perhaps somehow restrict acces with htaccess.

 

 

Similar Threads

  1. protected folder
    By 100asa in forum General Questions
    Replies: 2
    Last Post: 12 Mar 2014, 02:12 PM
  2. Setup a folder in root for protected videos
    By dgsignal in forum General Questions
    Replies: 3
    Last Post: 8 Jan 2009, 03:37 PM
  3. Password Protected Directories of Products For Specific Users?
    By elpasoportraits in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 17 Oct 2008, 10:18 PM
  4. User specific shop
    By zacman in forum General Questions
    Replies: 1
    Last Post: 19 Apr 2008, 01:17 PM
  5. User specific categories
    By mitch_j in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 8 Nov 2006, 05:54 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg