The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern

Refresh Pages on Session Destroy

  • # July 8, 2012 at 11:34 pm

    I want to refresh all pages if my session is destroyed from any of the page by clicking log-out.

    # July 9, 2012 at 4:52 am

    Maybe something like this:

    header("Location: ".$_SERVER);

    $_SERVER = this is to complete the address,

    If your address is

    $_SERVER = page.php

    $_SERVER =

    # July 9, 2012 at 5:03 am

    This reply has been reported for inappropriate content.

    One simple option I can think of is doing a simple AJAX request every 5-20 seconds that would check the session and return false or something if it’s destroyed, you can then refresh the page via jQuery.

    # July 15, 2012 at 4:22 am

    @chrisxClash:- Can You help me to give the demo of what you have told

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed