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

More pug propaganda.
http://www.youtube.com/watch?v=8Kkrmubsgf8

The commercial is definitely worth watching pug aw

Help with ORDER BY
Hello. I would like to order by ascending States, then Cities, then Gyms in the following code, but

mod_rewrite.c on windows ??
why it's not working on windows while it's working on other hosts???

this is the code i got

Do something every fifth time?
I'm trying to write a loop, but I want it to do something different after every fifth instance. Like

SAP FICO learning materials
Hi all,
I am new to this world of SAP FICO. I have taken training on SAP FICO, but was wonderin

SQL query not working well
Hi,
I made a small table with 5 rows and want to make them an sql consult using rownum

Members Only
Hi all, for my website i have a members area only which on members can veiw, but at the moment anyon

New to PHP and just trying to understand a little code.
I hope I'm not annoying anyone or breaking the rules but I was wondering about this bit of code righ

passing an array of objects after submit
How do I do this? This is what I have tried and it is not working.

<form method="

Mail Form receiving emails with no content
Hi, I hope someone here can help me.
I have a simple form in my website, it was working OK, after

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