Can"t get $_session variable on some other page

Can"t get $_session variable on some other page

am 05.09.2007 13:27:50 von upendrajpr

Dear friend ,

As i authenticate my some other page with

editdelete.php
-----------------------
session_start();
if ((isset($_SESSION['validUser'])) && ($_SESSION['validUser'] ==
"Y"))
{ ?>

Show some text
else
{ // return to index file
header ("Location: index.php");
}

My problem is I could not get the $_SESSION['validUser'] variable
valued on this page .


login.php
------------
Though I get the value from originating page
if (($txucode==1) && ($pass_status==1)) { if(!
isset($_SESSION['validUser'])) {
$_SESSION['validUser'] = "Y"; }

How could I get the value of $_SESSION['validUser'] in
the editdelete.php

Thanx in advance
with regards
situ

Re: Can"t get $_session variable on some other page

am 05.09.2007 13:33:05 von Lammi

you have to start the session again on login.php before you're able to
access the session varaibles.

Re: Can"t get $_session variable on some other page

am 05.09.2007 13:48:28 von upendrajpr

On Sep 5, 4:33 pm, Lammi wrote:
> you have to start the session again on login.php before you're able to
> access the session varaibles.

Thank you very much Lammi...

with regards
situ