Try
if ( isset($_SESSION['verified_user'])==1) {
...
}
or in main.php try to print out if there any variable or not?
"Guru Geek" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello,
>
> I'm trying to use sessions for the first time.
>
> I have a log in script that gets the user
I usuallly use
if ( isset($_COOKIE["Name"]) ) {
.
}
But if there have any output before this code I use
ob_start();
your output...
if ( isset($_COOKIE["Name"]) ) {
.
}
ob_end_flush();
"Webmaster Mbt" <[EMAIL PROTECTED]>
Do not echo $query or any output before session_start(); or
session_register("xxx"); (mean headers)
//echo $query
Or may be you can put ob_start(); before first output and put
ob_end_flush(); after last headers
ob_start();
echo $query
.
.
//your code.
.
.
session_register("ses_level");
ob_end_flu
Please, I' also have some question about $_SESSION.
Simple, how can we earse all $SESSION variable except one or two variables.
Beacuse i want to show some error message in my login form when login
failed. i want to destroy all other $_SESSION variable (about 10) except
$_SESSION['errmsg'] and
"Stephen Craton" <[EMAIL PROTECTED]> wrote in message
000601c267ed$1cf93780$[EMAIL PROTECTED]">news:000601c267ed$1cf93780$[EMAIL PROTECTED]...
> Here's the part that's supposed to display the information. I've only
> filled in one area so far:
>
>
> Sunday
>
"Jason Caldwell" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> How can I create a dynamic image with PHP?
>
> Here's what I want to do; I have a counter (kinda) on my website.. and
this
> counter appears in a certain font -- which most computer systems will not
> have on their s
6 matches
Mail list logo