[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 217
  • Last Modified:

vb script to display logon home page only when it has been updated

Hi,
We have a request from HR to display a web pag at logon, but, only if the page has been updated since the user last viewed it. Any ideas?
0
andiharper
Asked:
andiharper
1 Solution
 
b0lsc0ttIT ManagerCommented:
andiharper,

Do you have the last login date in a database?  If so, then do you need the script to find the date the page was last modified and compare the two or how will you get the last modified date?  If the script needs to do it then you can use the File System Object.  For example ...

Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.GetFile("c:\path\to\filename.txt")
If DateDiff("d", DateFromDB, objFile.DateLastModified) > 0 then
  ' display the page
End if

That is just an example of what you can use.  Let me know if you have any questions or need more information.

b0lsc0tt
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now