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

Custom Container in module pool program
Hello everyone,

I have created a custom control in my module pool screen. Now I want to s

Checking BOM Authorization Group
Hai Friends,

I have developed a mulitilevel BOM display report. End users have been assig

values in array being escaped
I would like to submit some values - back to the same form for checking before processing...

True way to see if action was successful?
If this is a good way to see if action was successful to continue:

Code: function changeGa

PHP Surveys
I really would like some advice.

If you have a client come to you asking for a survey to be d

"From field" in PHP email form
I used a wizard to create a PHP email form. I was able to customize it with the exception of the Fr

Move array index to end
Hey guys,
Quick question:

I have an array that looks like this:
Code: [Select]$var =

help, header() is not working!
Hello, I have this code:


<?php

/**
* @author samoi
* @copyright 200

Parse Error with doctype
I'm getting a parse error with this simple code. I don't get it. It worked one time then when I relo

Converting RGB values to HEX
Code: <?PHP

$file_handle = fopen("colors/rgb.csv", "r");

wh

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