Ad block is installed and active. Please support us by disabling it.
HomeWednesday, April 25, 2018, 08:52:49
1

PHP $_SESSION

Monday, February 9, 15, 13:32:12, 3 Yaers Ago Via wain, Hits: 5826
Session_start creates a session or resumes the current one based on a session identifier passed via a GET or POST request, or passed via a cookie.
Example:

index.php

Code:
<?php session_start();
$numero = rand(100, 999);
$_SESSION['rand'] = $numero;
echo $_SESSION['rand'];
?>
<br><a href="session.php">session.php</a>


session.php

Code:
<?php session_start();
echo $_SESSION['rand'];
?>
<br /><a href="destroy.php">destroy.php</a>


destroy.php

Code:
<?php session_start();
echo $_SESSION['rand'];
session_destroy();
?>
<br /><a href="index.php">index.php</a>

Sign In

Sponsor

Related

Link Base L.1.1.

This script allows you to manage your links using a MySQL database. It features easy install, user submission, and an admin panel to add, edit and remove categories and links. The script is easy to customize to suit your needs.

PHP Forms

FREE PHP forms

Comments 1.1. :: PHP Script

This script allows your visitors to add comments to any single page on your web site.

Creating a basic bad word filter in PHP

This tutorial will show you how to create a basic bad word filter in PHP

MySQL – Select from two tables

Select data from two tables, PHP MySQL

Imageline

Draws a line between the two given points.

MySQL Inner Join

MySQL Inner Join - Creating Dynamic Webpages Using PHP and MySQL, Requirement(s): PHP Server, MySQL

Smarty Paginate Example - Smarty Pagination with PHP

Smarty Paginate Example, Smarty Pagination with PHP. SmartyPaginate: a class/plugin for data set pagination within the Smarty template environment

HTML Button Generator

This script will allow your visitors to create HTML Buttons online. To use the "html button generator" script completely free , the "powered by" link at the bottom of the pages must stay intact.

MySQL Basic Functions

MySQL Basic Functions - select, delete, update..
About Author

wain

Date Registered: Sun, Feb 8, 15
Last Time Online: Sun, Mar 18, 18
So far has created 115 entries.
wain
This author has not yet filled in any details.