Inital commit
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
session_start();
|
||||
session_destroy();
|
||||
$_SESSION['tilman']++;
|
||||
?>
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
<?php
|
||||
echo 'tilman = '.$_SESSION['tilman'];
|
||||
?>
|
||||
</p>
|
||||
<p>
|
||||
<a href="http://localhost/Metainformationen/session/seite1.php">Seite1</a><br>
|
||||
<a href="http://localhost/Metainformationen/session/ende.php">Ende</a>
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
// ini_set('session.use_trans_sid', true);
|
||||
// ini_set('session.use_cookies', '0');
|
||||
session_start();
|
||||
$_SESSION['tilman']++;
|
||||
?>
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
<?php
|
||||
echo 'tilman = '.$_SESSION['tilman'];
|
||||
?>
|
||||
</p>
|
||||
<p>
|
||||
<a href="http://localhost/Metainformationen/session/seite1.php">Seite1</a><br>
|
||||
<a href="http://localhost/Metainformationen/session/ende.php">Ende</a>
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
@session_start();
|
||||
$_POST['running'] = true;
|
||||
?>
|
||||
<html><head><title></title></head><body><p>
|
||||
eingeloggt.<br>
|
||||
<a href="sesstest.php">sesstest.php</a><br>
|
||||
<a href="sesstest2.php">sesstest2.php</a><br>
|
||||
</p></body></html>
|
||||
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
ini_set('session.use_trans_sid', '1');
|
||||
ini_set('session.use_cookies', '0');
|
||||
// session_name('id');
|
||||
ini_set('session.name', 'id');
|
||||
// output_add_rewrite_var('var', 'value');
|
||||
|
||||
if (isset($_GET['id'])) {
|
||||
@session_start();
|
||||
?>
|
||||
<html><head><title></title></head><body><p>
|
||||
Wir machen weiter: <a href="sesstest.php">Weiter</a>
|
||||
</p></body></html>
|
||||
<?php
|
||||
}
|
||||
else {
|
||||
@session_start();
|
||||
?>
|
||||
<html><head><title></title></head><body><p>
|
||||
Kennen wir uns? <a href="sesstest.php">Weiter</a>
|
||||
</p></body></html>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
if ($_POST['running']) {
|
||||
@session_start();
|
||||
echo 'wir machen weiter.';
|
||||
}
|
||||
else {
|
||||
echo 'kennen wir uns?';
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user