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

Remove Rows From Database ad
Hi All,

I have this:

Code: [Select]<?php
session_start();
include('../com

making web pages for accounts
Hello, I would like to make pages for accounts on my website im making (its not a real website..im j

Storing/displaying image urls in a database?
Hi
Basically I have the following scenario:
User chooses picture from list. Picture info is ad

Session is not saving
I am not trying to do anything too fancy, I am just trying to get some $_SESSION data to save and us

Time script, set to my time zone?
I am using this line to get the date and time

Code: $time = date(F." ".d.", &q

MFC GUI Programming
I am working on a project right now that requires me to create a MFC Windows GUI. Basically it need

Using cURL to PUT
Can somebody help with the correct php code to make a cURL PUT request. Here is a sample of code bel

Why use OOP?
Can someone explain to me why I should use OOP instead of procedure based code.

Im building a

noob cURL help
I have a pretty basic form that I need to cURL post to a file in my includes folder (includes/login.

What are causes of a connection-timeout with fopen()?
Hello! Here is the situation: The server I host my website on just upgraded it's PHP build from 4.4.

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