Download
    Interview Question     &Answer
Main Menu
PHP Session@ Shwetank education.com
Script   PHP Session
Using sessions in PHP allows you to store temporary information of a user on the server which can be passed from one page to another whilst the user is surfing your site. It is automatically destroyed once the user has left your site.

Syntax
<?php
session_start();
?>

Session Example With User Login
PHP code   Login .php
<?php
if(isset($_REQUEST["btn"]))
{
$uid=$_POST["t1"];
$pwd=$_POST["t2"];
if($uid=='jit@gmail.com'&&$pwd=='123')
{
session_start();
$_SESSION["visitor"]=$uid;
header("location:welcome.php");
}
else {
}
}
?>

HTML Code
<form id="form1" name="form1" method="post" action="">
<table width="300" border="0">
<tr>
<td>User id </td>
<td>
IT  Projects Links
M-Tech Thesis
Php Project
Java Project
Asp.Net Project
Android Project
Vb .Net Project
Html Project

------------------------------- Electronics  Project
Networking
Embedded system
Telecom
Robotics
CCNA
------------------------------- Latest IT  News


Copyright 2010-2015    shwetankeducation.com
Privacy & Terms