Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

php parent refresh problem

  • 25-04-2006 02:35PM
    #1
    Registered Users, Registered Users 2 Posts: 1,086 ✭✭✭


    Once users are logged in on my site they click perimeter links which changes the content in an iframe in the center.

    This is fine however, if their session times out and then they click a link to change the content of the central iframe I get errors because they are not logged in.

    It is easy to modify this so the central iframe page redirects to a 'please log in' page. However I cannot get the parent page to refresh. The parent pages still displays you as being logged in however you are not.

    I understand there is a way using Javascript. I would ideally like to avoid that solution as I want to facilitate users with Javascript disabled.

    Thanks


Comments

  • Moderators, Politics Moderators, Paid Member Posts: 44,044 Mod ✭✭✭✭Seth Brundle


    What kind of errors do you get?
    As php is a server side language, it will not be able to refresh the page. You could use HTML to do this...
    <meta http-equiv="refresh" content="60" />
    This will refresh the page every 60 seconds


Advertisement