All Posts by Email, Once a Week

Media Temple logo

CSS-Tricks is brought to you in part by Media Temple, the web hosting that we both use and recommend.

Check Session variable after every 2 sec.

  • # July 15, 2012 at 4:21 am

    i want to check my login session variable after every 2 sec. can anybody help me out.

    # July 25, 2012 at 9:58 pm

    This reply has been reported for inappropriate content.

    function checkme(){

    setInterval(checkme, 2000);
    # July 25, 2012 at 11:06 pm

    Assuming you’re talking about the php $_SESSION variable, you’d do what elneco said, but you’d have to ajax a separate php file and return the session information.

    # August 13, 2012 at 10:01 pm

    thanks sir i got it

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