How to Extend IE mode more than 30 days

Anonymous
2022-03-03T10:10:12+00:00

After adding URL's in IE mode pages it has a expire days of 30. I would like to know how to extend more than 30 days as per InternetExplorerIntegrationLocalSiteListExpirationDays policy.

Please help.

Microsoft Edge | Other | Windows 10

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

167 answers

Sort by: Newest
  1. Anonymous
    2022-06-18T07:52:33+00:00

    Totally agree. I don’t think it’s unreasonable to ask users of the code to add their own slashes. :-)

    This code is going to help so many people…

    One final query - I’m thinking of giving the user the option to only reset the “date added” for specified sites…

    I’m assuming it would be another iteration of the InStr and Replace commands?

    I already have a modified version of your code that adds a few other options, such as the option to use today’s date as date added - so even if you have an example of those commands, that would be a huge help.

    …and as ever, thanks again.

    Was this answer helpful?

    0 comments No comments
  2. Les Ferch 10,361 Reputation points Volunteer Moderator
    2022-06-18T03:38:10+00:00

    I was getting the same issue as Beatrice, but I thought it was because the script was adding the / at the end of my webpage address?

    When I manually add the webpage in Edge UI, I can see in the Preferences file that it doesn’t add the / , so I just removed the line of code that adds it and it worked okay.

    Is the / only for adding sites rather than pages?

    I removed the code that adds the trailing slash and added a comment that says to include a trailing slash in your URLs, unless it's a file URL such as .html or .aspx. Handling the trailing slash automatically would require a big lookup table of web page file types. It would be rather difficult to know if such a table were complete.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  3. Les Ferch 10,361 Reputation points Volunteer Moderator
    2022-06-18T00:58:53+00:00

    I noticed a strange behavior of the script. If I use the AddSite function the first address becomes non-erasable and at the end it inserts "/" e.g. http://localServer/register/login.aspx AddSite >= http://localServer/register/login.aspx/ (not working ie mode)

    Actually, two issues. The first is that the URL must be lowercase (solved) and the second is that files (.html, .aspx, etc.) must NOT have a trailing slash (to be solved).

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  4. Les Ferch 10,361 Reputation points Volunteer Moderator
    2022-06-18T00:53:17+00:00

    I was getting the same issue as Beatrice, but I thought it was because the script was adding the / at the end of my webpage address?

    When I manually add the webpage in Edge UI, I can see in the Preferences file that it doesn’t add the / , so I just removed the line of code that adds it and it worked okay.

    Is the / only for adding sites rather than pages?

    I see. I replicated the issue using this URL: http://toastytech.com/evil/index.html.That URL will not work if it has a trailing slash. So, it gets tricky. Edge requires a trailing slash for sites (at least so the entry can be deleted). If the code to add the trailing slash is removed from the script, then you'll need to test and make sure you include the slash when it's required. I'll see if I can come up with code that will work for all cases (maybe check for certain extensions, such as .html). I have to detect if it's a folder or a file.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  5. Anonymous
    2022-06-18T00:13:13+00:00

    I was getting the same issue as Beatrice, but I thought it was because the script was adding the / at the end of my webpage address?

    When I manually add the webpage in Edge UI, I can see in the Preferences file that it doesn’t add the / , so I just removed the line of code that adds it and it worked okay.

    Is the / only for adding sites rather than pages?

    Was this answer helpful?

    0 comments No comments