Kemm Posted February 15, 2007 Share Posted February 15, 2007 Hi everyone! My first post on this forum is a question, but I'm looking to help people as well when I handle the PHP-language a lil bit better. Tried this code yesterday, worked fine: <?php session_start(); if (!isset($_SESSION['times'])) { $_SESSION['times'] = 0; } else { $_SESSION['times']++; } print "You have updated the site "; print $_SESSION['times']; print " times during this session."; ?> But its not working anymroe, anyone know whats wrong with it? Thanks! Link to comment https://forums.phpfreaks.com/topic/38640-session/ Share on other sites More sharing options...
trq Posted February 15, 2007 Share Posted February 15, 2007 There is nothing wrong with that code. What does not working anymore actually mean? Link to comment https://forums.phpfreaks.com/topic/38640-session/#findComment-185456 Share on other sites More sharing options...
Kemm Posted February 15, 2007 Author Share Posted February 15, 2007 There is nothing wrong with that code. What does not working anymore actually mean? Well it worked fine yesterday on http://kltorvanger.info/scripts/script_session.php, but now its not working anymore... Tried Firefox and Explorer. Try the link above, might work for you. ??? Link to comment https://forums.phpfreaks.com/topic/38640-session/#findComment-185460 Share on other sites More sharing options...
Balmung-San Posted February 15, 2007 Share Posted February 15, 2007 You still haven't explained what not working anymore actually means. How is it not working? What is it supposed to do that it's not doing anymore? Link to comment https://forums.phpfreaks.com/topic/38640-session/#findComment-185462 Share on other sites More sharing options...
Kemm Posted February 15, 2007 Author Share Posted February 15, 2007 You still haven't explained what not working anymore actually means. How is it not working? What is it supposed to do that it's not doing anymore? Ah sorry bout that. Its supposed to increase the number of hits on the webpage everytime you update it during that session. Link to comment https://forums.phpfreaks.com/topic/38640-session/#findComment-185464 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.