> For the complete documentation index, see [llms.txt](https://helpdesk.ldtsoft.work/ldt-online-course/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://helpdesk.ldtsoft.work/ldt-online-course/older-guides/setting-up-limited-time-access-for-your-courses.md).

# Setting Up Limited-Time Access for Your Courses

Give access for a limited time, then let it expire

This guide shows you how to automatically grant course access for a specific period (e.g., 30 days, 90 days) from the date of purchase, after which the system will automatically revoke access. This is perfect for subscription-based content, short-term offers, or promotional packages.

### Step 1: Access Course Settings in LDT

First, navigate to the course you want to apply a time limit to.

* From your Shopify admin, go to Apps > LDT Online Courses.
* Click on Courses and select the specific course you want to set a time limit for.

<figure><img src="https://3532245007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRJ3j93eHyen8t2flj5y%2Fuploads%2Fgit-blob-71e5de8472b9170b57973025305baa94d3fc9a61%2Fcourse%206.2.png?alt=media" alt="Opening the course that gets a time limit"><figcaption></figcaption></figure>

### Step 2: Link the Course to a Shopify Product

This feature requires the course to be linked to a product on Shopify.

* On the course settings page, find the section titled "Auto enroll via Shopify Products". That section only renders while the course is **Paid - Private**, **Paid - Secret** or **Hidden - Internal** — on a **Free - Public for everyone** or **Free - Public for any customer** course there is nothing to link, so change the visibility first ([How to change course visibility](/ldt-online-course/enroll-and-price/how-to-change-course-visibility.md)).
* Click the **Link to products / variants** button.
* In the pop-up, find and select the product you will be using to sell access to this course.
* Important Tip: If you have different plans (e.g., a 31-day plan and a 1-year plan), you can create variants for your product (e.g., "31-Day Access" and "1-Year Access"). In this step, click on "Specific variants" and select all the relevant variants you want to link.

<figure><img src="https://3532245007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRJ3j93eHyen8t2flj5y%2Fuploads%2Fgit-blob-c44b779a72f414a4d946100d7d0a686451667249%2Fcourse%206.5.png?alt=media" alt="Linking the product that sells access to the course"><figcaption></figcaption></figure>

### Step 3: Activate and Configure the Time Limit

This is the key step where you activate and set the duration of the limited access.

* Just below the product link, you will find the "Limit time access" option. Toggle this on.
* Once enabled, an input field will appear.
* Enter the number of days you want to grant your student access. For example:
* Enter 31 for a 1-month plan.
* Enter 366 for a 1-year plan.
* Enter 91 for a 3-month plan.
* Important: If you linked multiple variants in Step 2, you CAN set different access times for each one. Make sure you enter the correct number of days corresponding to each plan.

<figure><img src="https://3532245007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRJ3j93eHyen8t2flj5y%2Fuploads%2Fgit-blob-b786c9bb79e3151ec821293a4c13f0ac501b7f7b%2Fcourse%206.7.png?alt=media" alt="Entering the number of access days for each variant"><figcaption></figcaption></figure>

\
By following these steps, you can easily control and automate the duration of your students' course access, giving you greater flexibility in your business model.

<br>
