HomeSunday, June 24, 2018, 01:35:11
1

PHP $_SESSION

Monday, February 9, 15, 13:32:12, 3 Yaers Ago Via wain, Hits: 6149
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

PHP Form Validation

PHP form validation :: PHP tutorial, requirement(s): PHP Server

Password Protect With PHP

Password protect tith PHP - tutorial

Contact Us 2.0. :: PHP Form

Version 2.0. - A contact us form with email and form field validation. It allows your visitors to send you an email directly from your website.

Jquery PHP Contact Form

This script allows your visitors to send you an email directly from your website.

PHP Fwrite : fwrite

php write to file - how to write data to a file using the php frwite function

How to check checkbox checked

Checking if checkbox is checked with jQuery

Getimagesize

Getimagesize function will determine the size of any given image file and return the dimensions along with the file type and a height/width text string to be used inside a normal HTML IMG tag and the correspondant HTTP content type.

PHP Write to File

PHP Write to File :: PHP Tutorial, requirement(s): PHP server

Jquery - Formatting International Phone Numbers

How to format international telephone numbers with jquery

E-Cards 1.1. PHP Script

This script will allow your visitors to send e-cards to their friends. It features admin notification and HTML output.To use the "e-cards" script completely free , the "powered by" link at the bottom of the pages must stay intact.
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.