# Periodically refresh Iframe

**URL:** <https://forum.inductiveautomation.com/t/periodically-refresh-iframe/36228>\
**Category:** Ignition\
**Created:** [June 30, 2020, 11:03pm UTC](https://forum.inductiveautomation.com/t/periodically-refresh-iframe/36228 "2020-06-30T23:03:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![NII](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nii/32/12920_2.png) [@NII](https://forum.inductiveautomation.com/u/NII)\
**Post date:** [June 30, 2020, 11:03pm UTC](https://forum.inductiveautomation.com/t/periodically-refresh-iframe/36228/1 "2020-06-30T23:03:00Z")

</div>

I have an Iframe that contains [asp.net](http://asp.net) as its source and it gets updated with new data periodically. Looks like it gets a different session id for every update and says “[ASP.NET](http://ASP.NET) session has expired or could not be found” when it get a new data.

Is there a way to periodically refresh the Iframe or source (the view) ?

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [July 1, 2020, 1:45am UTC](https://forum.inductiveautomation.com/t/periodically-refresh-iframe/36228/2 "2020-07-01T01:45:41Z")

</div>

You could use a Gateway Timer Script to send a message to all sessions, which would then send out their own message to update the iframe with the source you’d like to update.

---

<div class="post-metadata">

**Author:** ![PRAMANJ](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pramanj/32/66935_2.png) [@PRAMANJ](https://forum.inductiveautomation.com/u/PRAMANJ)\
**Post date:** [July 1, 2020, 1:59am UTC](https://forum.inductiveautomation.com/t/periodically-refresh-iframe/36228/3 "2020-07-01T01:59:43Z")

</div>

I generally use AJAX calls from the browser in a timer loop to the server . Don’t know about Iframe
