Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
dvprog_08 [2019-09-09 09:21] Daniel Viström |
dvprog_08 [2020-05-18 20:24] Daniel Viström |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Genomgång $_SESSION ====== | + | ====== Genomgång |
<code php> | <code php> | ||
<?php | <?php | ||
- | include ' | ||
- | |||
session_name(' | session_name(' | ||
session_start(); | session_start(); | ||
Line 11: | Line 9: | ||
// | // | ||
+ | include ' | ||
// För att slippa felmeddelanden då $_SESSION inte har nåt med index ' | // För att slippa felmeddelanden då $_SESSION inte har nåt med index ' | ||
Line 50: | Line 49: | ||
- destroy the session: session_destroy(); | - destroy the session: session_destroy(); | ||
*/ | */ | ||
- | |||
- | ?> | ||
</ | </ |