Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- if( isset( $_SESSION[ 'test' ] ) ) {
- echo 'Session funktioniert';
- } else {
- echo 'Session nicht initialisiert';
- }
- if( isset( $_GET[ 'set' ] ) ) {
- $_SESSION[ 'test' ] = 'test';
- }
- if( isset( $_GET[ 'del' ] ) ) {
- session_destroy();
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement