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 ===================================== . . . =================================
5 6116Every time i run a c-code in editor, getting some runtime error and editor is disposing, even after reinstalling the software what may be the problem?
2 3359Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me
1443a class that maintains a pointer to an object that is programatically accessible through the public interface is known as?
CTS,
2 3462
What do you mean by python being an “interpreted language”?
What is an operator in python?
in PHP for pdf which library used?
What is indirection? How many levels of pointers can you have?
Can you have two blog pages in wordpress?
Explain me dogpile effect? How can you prevent this effect?
Are there arrays in python?
What is printf () in c?
What case you don't see plugin menu?
Write a c program to demonstrate character and string constants?
What does sticky at top of lists does in publishing options while creating the front page?
What are the benefits of yii over other frameworks?
Write a code to display the current time.
What is oop in c++?
What is a flatmap in scala?