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"){
$_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

timed header image rotation
I have a joomla site and I was trying to setup a rotating image based on timing NOT just refreshing

mail() problem
Hi Guys,

I've set up a contact email form. It sends the information fine, but it sends it to

Coding question?
Hey guys, I have a quick question. If I want to make a way for people to pay for health in my game,

Allowing ' and "
Hello everyone,

I am creating a form where users submit information to go into a database. I

Small problem with image resize script
Hi!

I am a little bit new to php and I have an issue installing an image resize script I down

Just a white page
Okay so, my website, when I click SignUp on it it takes me to /join.php but its a complete white pag

XML Grouping
I'm using xml_parse_into_struct to get all my elements, but now I need to group them. For example, h

do while conditions
i want to display 6 images in a 2x3 table
now what would be the correct logic to
count that th

please help me in this update statment
hi every one

if I have table and this data in it

id name
10

ScriptManager History and Opera Issue
I am having an issue in opera with the ScriptManager. I have a ScriptManager on a page with history

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