Set expiration dates for Secure Zone Memberships

We run an online exercise company offering memberships with access to exercise videos so users can exercise online - we sell memberships by the week, month, or month to month memberships. We also sell a beginner courses. The site has been built in Adobe Muse, integrated with Business Catalyst.
For the time-based memberships we have inserted a snippet of code in Business Catalyst that limits the amount of time members have access to the secure zone where we keep the videos - this is tied to the form members fill out when they purchase. The issue is that when the entire Muse site is republished or just the page with the form - the code disappears. So we have to go into each form and reinsert the code. This has been going on for quite some time. Below is most of the code we've been using - which we found in Business Catalyst Forum Section a couple years ago:
function setExpiryDate( )
var dat=new Date();
dat.setDate(dat.getDate() + 8);
var monthname=new Array("Jan","Feb","Mar","Apr","May","Jun", "Jul","Aug","Sep","Oct","Nov","Dec")
var pretty = dat.getDate() + "-" + monthname[dat.getMonth()] + "-" + dat.getFullYear();
document.getElementById("ExpiryDate").value = pretty;
};setExpiryDate( );
We are looking to 'permanently' anchor the code in the form.

Hi
If you are using BC secure zones then you can setup the expiry date from BC end only, regarding the code that you are using , I believe you are trying to use specific form for secure zone sign up and limiting the expiry date.
Regarding form code being stripped off, are you submitting the form once from site front end and then also code is stripped off ?
Please include site url in your response.
Thanks,
Sanjit

Similar Messages

  • Can you please help to understand how the firefox decides on the Expires date for a cached javascript file ( my server did not set any Expire header, but firebox set it down).

    # Question
    Can you please help to understand how the firefox decides on the Expires date for a cached javascript file ( my server did not set any Expire header, but firebox set it down). I tried to understand but different javascript file gets different Expires date value when it is being cached. Please help me as I tried lot and could not get proper answer for this. Thanks in Advance.

    Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox. <br />
    http://forums.mozillazine.org/viewforum.php?f=25 <br />
    You'll need to register and login to be able to post in that forum.

  • OMJ5(set expiration date chk) there is no plant code that i am created

    Hello. guys
    I'm doing IMG...
    But, there is problem.
    in IMG - Logistic general - Batch Management - Shelf Life expiration Date
    - Set Expiration Date Check (OMJ5).
    there is only one plant code. (that code is 0001.)
    why there are my plant code that i made. (Actually, I create 2 plant code. (copy as from 0001)
    what is wrong??
    plz, help me~ thanks!
    Edited by: KeunChan Lee on Jun 15, 2010 1:41 PM

    You can maintain the same as under:
    IMG>Materials Management>Inventory Management and Physical Inventory-->Plant Parameters
    Create New entries here or you can copy the same from already existing entries. Herein tick the BBD/Prod. Date for enabling SLED.
    Hope this helps you out.
    Enjoy SAP,
    ParagM

  • Single form for secure zone registration and web app submission?

    Hi
    Is it possible to setup a form where a user can simultaneously register for a secure zone and submit a web app entry? The knowledge base / tutorials describe a two step process (web form for secure zone registration and web app input form for web app submission), but I would like users to be able to do both with a single form
    Thanks in advance for any suggestions
    mls

    In order to have a customer create a web app item they must be logged into the secure zone already.  I've seen some instructions on how to let users submit web app items outside a secure zone but that requires creating a dummy anonymous user and logging them into the secure zone via javascript.  You could use this method and once it's submitted you'll have to manually attach the web app item to the correct user in the BC Admin.  That might not work for you but you can read more about that at http://forums.adobe.com/docs/DOC-1784
    You can't use the above solution with the current user's username and password because those tags are only available when the user is logged into a secure zone already.  If your signup form needs to be filled out first, the user isn't logged in.
    Your best bet is to have the public signup form redirect the user after submission to an "Add item" form you have created. Maks sure that form is in a secure zone so when they add the item it is attached to their account.
    If you don't want to redirect them to a secure zone and want it more seamless you could try to use some javascript/ajax to submit the form via javascript and after the form is submitted, use the javascript code in the above to log them in (be careful to use the https://yoursite.worldsecuresystems.com url if you are passing username and password info gathered from your form to log them in via javascript/ajax).  Once they are logged in via the javascript you can use more ajax to fetch a page's HTML that resides in a secure zone.  This HTML returned from the javascript can be your "add web app item" form and since they were logged in via javascript (securely, right?) this HTML should contain the right information.  Insert this returned HTML into your form container that held the original signup form and they can continue to add a web app item without having to log in.
    This is theory and might work but you'll have to start experimenting with it via javascript.  I haven't actually tried to do this so hopefully some other community members who might have tried this can weigh in here as well.
    Good luck!

  • T.code: expiration date for a material

    Hi,
    I would like to know the expiration date for a material.
    Do you know the T.code?
    Thanks
    Dede

    As per my knowldge there is T.code to show expiry date of material.
    If material has maintained as abatches those batches has only expiry date.
    Only you can view in  material validity start.
    Edited by: Sridhar Jayavarapu on Mar 24, 2009 4:18 PM

  • Expire date for user in the system

    HI ,
    There is a place when we can defined expire date for user in the system ,
    something that similar to role that provided to user from 24/02/2010 - 25/02/2010 .
    i search in su01 and not found anything .
    any idea?
    Regards
    James

    hi james,
    i thin k you can do it in su01 logon data tab--->valid through (in validity period).
    Hope this will help you.
    Thanks,
    Tanmaya

  • Got GCU awhile ago, never got my welcome coupons from store or email also expiration date for GCU?

    Hello, I got GCU unlocked memebership awhile ago. I didn't receive my coupons for like the buy 2 get 1 used games and the guide coupon. Also where can I see the expiration date for my GCU?

    Hi lukebb90,
    As Mike alluded to above, you should receive the Welcome Packet right when you join Gamers Club Unlocked (GCU), usually within 2-3 business days! You definitely should have received your Welcome Packet by now and it sounds like you’ve done your due diligence in ensuring it’s not in your inbox.
    I’m going to send you a private message with some further information about this, so please be sure to keep an eye on your inbox. You can check your private messages by clicking the small envelope on the top right of the screen while logged into your account.
    Thanks for posting and you’ll be hearing from me shortly!
    Brian|Senior Social Media Specialist | Best Buy® Corporate
     Private Message

  • How to set the Expiration Date for a task which is been assigned explictly.

    Hi,
    When I assign a task to myself and not work on it for couple of weeks the task is getting released automatically into the original unassigned pool. The TaskActionHandler WSDL is causing that to happen. I don't want a task to be automatically released into the pool when I don't work on it for couple of weeks, how can I make that happen? TaskActionHandler is something which comes with the BPEL so I can't change the way how it behaves. Do I need to set the expiration date or duration explicitly when a task is created?then how do I do that?
    If anybody could let me know how to make TaskActionHandler not to release a dehydrated task, I would be glad.
    Thanks,
    Mythili.

    Hi,
    Make AUTO RELEASE a restricted action for the task by adding the following line:
    <restrictedAction>AUTO RELEASE</restrictedAction>
    to the <restrictedActions> tag in the task configuration file.
    Works effectively.
    Alternatively, you can specifiy the auto release durations on a per task priority basis. There is more on that in the BPEL Dev Guide.
    Hth, Sjoerd

  • Setting Expire Time for Data

    Hi,
    Is there any way to set the expire time for data in BDB? I need the data persist only for a limited time, after that the data should be deleted from db.
    If no such option available, is there any external tool to do this?
    Thanks,

    Thanks Sandra for your response.
    I need to store the key/value pair for specific time, means it shouldn't persist ever. It should persist for some user specific time. After that it should be automatically deleted/expired. or Any other tool should do this!
    Let me explain the scenario in elaboration, i need to store session (some) variables for 30 minutes, even if the user loggedout before 30 mins, some session variables should persist in the
    database for 30 min. After 30 mins even if the user loggedin some session variable should be cleaned.
    so i need the data to persist only for 30 mins!
    My understanding is db->del will delete the key/value pair, but there is no such option for expire time.
    Thanks,

  • How To Change Default Expiration Date for Portal User in Linux and Windows?

    Hello,
    I have a couple of environments I recently installed:
    1. Oracle Application Server 10 Release 2 (10.1.2) SEOne on Windows
    2. Oracle Application Server 10g Release 2 (10.1.2) Enterprise Edition on Linux
    I heard the portal and orcladmin user passwords will expire in about 60 days. I want to prevent this from happening. How can I set the expiration date to never expire for both these users? Or at least give me some warning?
    I heard that you can do this through the Oracle Directory Manager. However, I am unsure as which server to enter on the field. I've used the following:
    <servername>.hostname.com/389
    <DBname>.hostname.com/389
    They say 389 is the default port. Since I did not really
    Does anyone have any ideas?

    You have the answer in yours hands:
    Search for "60 days" in the forum
    How can I enfore Password Expiry Without Lockout?
    for instance.
    For the servername, it's the name of your server and the port is depending of your platform (have a look to $ORACLE_HOME_INFRA/install/portlist.ini) and
    chech the value for: Oracle Internet Directory port
    Patrick.

  • Best practice for secure zone various access

    I am setting up a new site with a secure zone.
    There will be a secure zone. Once logged in, users will have access to search and browse medical articles/resources
    This is how an example may go:
    The admin user signs up Doctor XYZ to the secure zone.
    The Doctor XYZ is a heart specialist, so he only gets access to web app items that are classified as "heart".
    However, he may also be given access to other items, eg: "lung" items.
    Or, even all items. It will vary from user to user.
    Is there any way to separate areas within the secure zone and give access to those separate areas (without having to give access to individual items - which will be a pain because there will be hundreds of records; and also without having the user log out and log into another secure area)

    my only issue with this is that I have no idea how to open up File Sharing to ONLY allow users who are connecting from the VPN
    Simple - don't expose your server to the outside world.
    As long as you're running on a NAT network behind some firewall or router that's filtering traffic, no external traffic can get to your server unless you setup port forwarding - this is the method used to run, say, a public web server where you tell the router/firewall to allow incoming traffic on port 80 to get to your server.
    If you don't setup any port forwarding, no external traffic can get in.
    There are additional steps you can take - such as running the software firewall built into Mac OS X to tell it to only accept network connections from the local network, but that's not necessary in most cases.
    And 2. The best way to ensure secure AND encrypted file sharing via the server...
    VPN should take care of most of your concerns - at least as far as the file server is concerned. I'd be more worried about what happens to the files once they leave the network - for example have you ensured that the remote user's local system is sufficiently secured so that no one can get the documents off his machine once they're downloaded?

  • Script Add bulk user with CSV, and set expiration date

    After importing the AD module, the line:
    Set-ADAccountExpiration -identity JohnDoe -timespan "365"
    Works just fine, but how would you automate this with a script that would read a csv-file. The -identity cmd dosen't seem to like my $SAM setup. Perhaps it's a better way to get-aduser and pipe it to set-accountexpiration. Is there a swift way to add the
    expire date to the user I just created with my CSV-file?
    Thanks!

    Thank You!
    You're very welcome.
    -AccountExpirationDate parameter of New-ADUser only seem to work with -DateTime, a specific date, while -TimeSpan is optimal for this solution.
    You can use Get-Date's AddDays method to generate a datetime object for use in this situation, see the code I'm posting below for an example.
    Now on to the next challange to warn me when they reach "32" days before expiration. Was thinking of running a Task Scheduled bath file that could collect number of days left and report it if below the mentioned days.
    Here's one method you can use for finding these users:
    $cutoffDate = (Get-Date).AddDays(32)
    Get-ADUser -Filter * -SearchBase 'OU=Users - TEST,DC=domain,DC=com' -Properties AccountExpirationDate |
    Where { $_.AccountExpirationDate -and $_.AccountExpirationDate -lt $cutoffDate }
    Just so you're aware, we generally try to keep threads to a single question.
    Don't retire TechNet! -
    (Don't give up yet - 13,085+ strong and growing)

  • Expiration dates for upgrades like studio8 to cs3

    Although i love to have the newest products, if i can manage a couple of years extra with the current set, why not.
    Currently i have dreamweaver studio 8, i want to upgrade eventually to cs3 / cs4.
    My question is, and i searched for it, how are the expiration dates set for version to version upgrades?
    Where can i find info on how and what?
    Can i get a notification if it's almost not upgradable anymore etc.
    Anyone has any tips? I don't want to end up buying full versions while i could pay a upgrade price...
    Thanks.

    To upgrade to CS4, then MX2004 is the oldest upgrade version at the moment, but this does not necessarily mean that you will be able to upgrade to CS5 (or whatever it will be called), form Studio 8. The upgrade policy is decided by Adobe and in my experience 2-3 version older than the current is the industry norm.
    I normally leave it for a max of 2 versions between upgrades.
    For info on Adobes current upgrade policy go the the Adobe store - select the product you wish - select 'upgrade eligibility.
    PZ

  • How can I display the password expiration date for a user

    I have created a GUI (using PrimalForms) which runs powershel scripts to pull information like user ID, email address, last logon ec. for the helpdesk to help establish the validity of some user claims of "it worked yesterday" and the like.
    I have been asked to add the password expiration date, but I am struggling to get the code for this addition.
    Does anyone know how I can include this, and have it in a human readable format?
    The current scripts (there are 3) allow the helpdesk staff to search on user ID and display name, the third provides the last logon, it was impossible to include this in the other scripts so I added an extra search button and called it good. An example of
    these scripts is below (please note, PrimalForms needs a slightly different syntax in order to get the results displayed, but the core script is standard PS, I use Powershell 3.0)
    $results.Text=Get-ADUser -Filter "sAMAccountName -eq '$($EntryBox.text)'" -Properties DisplayName, sAMAccountName, mail, extensionattribute5, PasswordLastSet, PasswordExpired, PasswordNeverExpires, buMemberOf, telephoneNumber, msExchOmaAdminWirelessEnable, whenCreated, whenChanged, enabled, AccountExpirationDate | select givenName, surname, DisplayName, sAMAccountName, mail, extensionattribute5, PasswordLastSet, PasswordExpired, PasswordNeverExpires, buMemberOf, telephoneNumber, msExchOmaAdminWirelessEnable, whenCreated, whenChanged, enabled, AccountExpirationDate | Out-String
    $results.Focus()
    for info:
    $results.text is the window in the GUI results are displayed  in
    $entrybox.text is the text box the helpdesk staff use to input the user ID or display name of the account they are querying
    $results.focus simply tells the script to put the results in the results.text window
    The screenshot below shows the current setup, this is purely to put the above information into perspective. Obviously some of the information displayed has been removed/redacted along with our logo.

    Hi,
    Here's an example you can build from:
    $maxPasswordAge = 120
    Get-ADUser USER -Properties PasswordLastSet |
    Select SamAccountName,
    PasswordLastSet,
    @{N='PasswordLifeRemaining';E={$maxPasswordAge - ((Get-Date) - $_.PasswordLastSet).Days}},
    @{N='PasswordExpirationDate';E={(Get-Date $_.PasswordLastSet).AddDays($maxPasswordAge)}}
    Don't retire TechNet! -
    (Don't give up yet - 13,085+ strong and growing)

  • Can't set due date for to do in iCal

    I'm not sure if I'm blind or not, but i can't seem to set a due date for my to-do events. There's an option to say that there is a due date, but all it does is that it bring the view to the current day and changes the icon to an alert icon.
    Is anyone else facing this problem?
    I'm using iCal Version 3.0.5 (1270).

    qwertyjem,
    Click on "due date" and define your requirements (day/month/year) ...if...you have set the preferences to match your requirements in System Preferences...>International>Formats>Region:/Dates/Times.
    ;~)

Maybe you are looking for

  • FCC Receiver Communication Channel

    HI Experts,                  My scenario was Idoc to File. Issue: In My target structure i have mapped A,B,C,D fields. I want only A,B,C at final structure. I cannot ignore D field in message mapping as i am using that field for file name Substitutio

  • Installation of Adobe Acrobat x Standard

    I have a HP computer with windows 7 and adobe reader 9.  I bought the acrobat x from the online store and downloaded it.  When i click on the desktop icon, it asks for a serial #.  I put in the serial # I was given from the store manager via email, a

  • Convert an Employee record to a Contingent worker record

    Hi friends, I have a requirement in HRMS where a list of Employees needs to be converted to a Contingent Worker. Since the employee details, address, etc... are already loaded, is it possible to convert/change the employee's person type from Employee

  • I have a wireless printer and received a new hard drive on laptop. How do I reset the scanning

    I have a wireless printer and received a new hard drive on laptop. How do I reset the scanning

  • Downpayment before Order Confirmation

    Hi Gurus, Plz. help me in mapping the business scenario. My client sells the goods either in cash or in dd to all the distributors. I need to show the cash in advance column in the sales order screen. Also I want to restrict the end user not to excee