diff --git a/index.php b/index.php
index 93a258f..d55bc1c 100644
--- a/index.php
+++ b/index.php
@@ -1,5 +1,8 @@
'Previous',
1 => 'Home',
2 => 'About myself',
3 => 'What I\'ve done so far',
@@ -11,71 +14,22 @@
}
else {
$section = $_POST ['section'];
+ if ( $section == 0 ) {
+ if ( isset ( $_SESSION [ 'section' ] ) ) {
+ $section = $_SESSION [ 'section' ];
+ }
+ else {
+ $section = 1;
+ }
+ }
+ $_SESSION [ 'section' ] = $section;
$section_title = $sections [ $section ];
$sections_content = [
- 1 =>
- 'Bryan Joshua Pedini
- An eighteen years old guy from Italy, with just some great ideas
- About Me
- This is what I do.
-