Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
Modify a session variable
SUBMITTED BY:
henry1874w
DATE:
June 21, 2017, 11:37 p.m.
FORMAT:
Text only
SIZE:
202 Bytes
Raw
Download
Tweet
HITS:
235
Go to comments
Report
<?php
session_start();
?>
<!DOCTYPE html>
<html>
<body>
<?php
// to change a session variable, just overwrite it
$_SESSION["favcolor"] = "yellow";
print_r($_SESSION);
?>
</body>
</html>
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus