Grow your CSS skills. Land your dream job.

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

    function checkme(){
    alert(myVariable);
    }

    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.

*May or may not contain any actual "CSS" or "Tricks".