Sessions Value Not Saved


Posted on 16th Feb 2014 07:03 pm by admin

Hi,

Im making a login form and im using this code:
Code: if($login=="true"){
Did you know?Explore Trending and Topic pages for more stories like this.
$_SESSION['mlvl']=1;
if($username=="admin"){
$_SESSION['admin']=1;
}else{
$_SESSION['admin']=0;
}
}
but when the page refreshes their is no value on the sessions i get this output:
Array ( [mlvl] => [admin] => )

any ideas?
No comments posted yet

Your Answer:

Login to answer
148 Like 7 Dislike
Previous forums Next forums
Other forums

Best way to check for end of a record and send it back to the first record
I'm hoping someone can help me out and explain the best way to accomplish this.

What I'm doin

Basic Question about Threading and PHP...
I have a page that I am working on and it is taking several hours to process. The basics of what th

C++ API to Oracle dB
I need to perform a select command to the Oracle dB to obtain information from a table.
What libr

Problem!
I have another problem, when i run this code i get this error "Parse error: syntax error, unexp

Get last modified date of web page
Hai All,

In php how can i get last modified date of a give web page . I have tried to g

need help in dynamic select menu in php
hi i have created a dynamic select menu using php. i have a problem in that which is when the user s

natcasesort works on one server but not on another
Hi

I have a problem that I was hoping that someone can help me with.

I'm trying to use

subtract 1 from value entered in text field
Hi

How do I subtract 1 from the vaue entered into a text field?

Thanks

SAP Project Module
I have seen in the SAP Project Module,plan cost and budget are not equal and even difference is sign

Need understanding of this bit of code
Code: <?php
// WHERE clause filters
$arrSQLFilters = array();

//

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash