Jump to content

Session?


Kemm

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.