Search This Blog

$_SESSION or sessions in php

<?php
//The session_start() function must put before <html> tag
session_start();

// store session value
$_SESSION['views']=2;

?>

output :

note :
1) no displays here, but stores some value

2) "views" value is now 2

Share Links

Related Posts Plugin for WordPress, Blogger...