How can we destroy the session, how can we unset the
variable of a session?
Answers were Sorted based on User's Feedback
Answer / lakshmi
using session_destroy()we can destroy the session and using
session_unset() we can delete all the session variable
| Is This Answer Correct ? | 10 Yes | 0 No |
Answer / lakshmi
using session_destroy()we can destroy the session and using
session_unset() we can delete all the session variable
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / rajan vardawaj
session_unregister() - Unregister a global variable from the
current session session_unset() - Free all session variables
| Is This Answer Correct ? | 2 Yes | 4 No |
Write a PHP code to print following number pattern: 123 456 789
hello experts good morning to everyone ! at present am now learning LAMP course sir( linux, apache,mysql and php) after finishing this course can i create my own website without investment is it possible ? please can any one tell sir and also tell me how can i upload my project after finishing the project in internet ? please tell the ways sir please send ur valuable suggestions to kiranpulsar2007@gmail.com
Write down the code for saving an uploaded file in PHP.
What is polymorphism?
Define object-oriented methodology?
What is the functionality of the function strstr and stristr?
What is isset in php?
What are php libraries?
i start a new session with : session_start(); then i set some session variable like this : $_SESSION['name']=$_POST['name'];\ and some another variables. at bottom of page i set header to diffrent page : header('location: index.php'); exit(); now in new page (index.php i can't access to my session variables, like $_SESSION['name']) what's wrong ? thanks. here is my files : a.php ======================================== session_start(); require ('config.inc.php'); if(isset($_POST)) foreach($_POST as $v=>$k) { $items[$v]=$k; } $sql="SELECT * FROM members WHERE username='{$items['user']}' AND pass=MD5('{$items['Password']}') "; $res=mysql_query($sql); $row=mysql_fetch_assoc($res); if($row['username']) { $_SESSION['type']=$row['type']; $_SESSION['name']=$row['name']; $_SESSION['family']=$row['family']; $_SESSION['username']=$row['username']; $_SESSION['date']=$row['date']; } header('location: admin.php'); exit(); ====================================== admin.php ===================================== <?php session_start(); if(!isset($_SESSION['admin'])) { header('location: index.php'); exit(); } require ('config.inc.php'); ?> . . . =================================
What does the initials of php stand for?
what is the post and get method??
Explain me what is the goto statement useful for?