redarrow Posted February 26, 2007 Share Posted February 26, 2007 How can you set a session where it counts for 1 year and show the count on the page with no database involved cheers. Link to comment https://forums.phpfreaks.com/topic/40254-solved-how-to-do-this-please-session/ Share on other sites More sharing options...
fert Posted February 26, 2007 Share Posted February 26, 2007 you'll need a cron job or this: session_start(); $y=date("Y"); while(date("Y")==$y)) { $_SESSION['count']++; } but you would need to have your browser on that page for a year and you would need to set the max execution time in php.ini Link to comment https://forums.phpfreaks.com/topic/40254-solved-how-to-do-this-please-session/#findComment-194757 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.