Just use a session_start() before any output to the server, and the
> sessions array will be available to your code.
>
>
> Ash
> www.ashleysheridan.co.uk
>
> Ah ha...and now I know why my O'reilly book Web Database Applications with
PHP was so inexpensive... :) it's outdated...oops...
On Thu, 2009-02-05 at 11:16 -0600, Terion Miller wrote:
> On Mon, Feb 2, 2009 at 4:18 PM, Chris wrote:
>
> > Edmund Hertle wrote:
> >
> >> 2009/2/1 Terion Miller
> >>
> >> This is how it was originally written:
> > if (empty($_SESSION['AdminLogin']) || $_SESSION['AdminLogin'] !=
> >
> >
On Thu, Feb 5, 2009 at 9:16 AM, Terion Miller wrote:
> On Mon, Feb 2, 2009 at 4:18 PM, Chris wrote:
>
> > Edmund Hertle wrote:
> >
> >> 2009/2/1 Terion Miller
> >>
> >> This is how it was originally written:
> > if (empty($_SESSION['AdminLogin']) || $_SESSION['AdminLogin'] !=
> >
>
On Mon, Feb 2, 2009 at 4:18 PM, Chris wrote:
> Edmund Hertle wrote:
>
>> 2009/2/1 Terion Miller
>>
>> This is how it was originally written:
> if (empty($_SESSION['AdminLogin']) || $_SESSION['AdminLogin'] !=
>
true){
>>>
header ("Location: LogOut.php");
>$_SESSION[
Edmund Hertle wrote:
2009/2/1 Terion Miller
This is how it was originally written:
if (empty($_SESSION['AdminLogin']) || $_SESSION['AdminLogin'] !=
true){
header ("Location: LogOut.php");
$_SESSION['user']=$UserName;
$_SESSION['AdminID']=$AdminID; <--*I added this one originally
> Show the code where your session vars are written and I would prefer using
> isset() instead of empty() if you want to check if this var is set or not.
>
> -eddy
>
Hi All, here is the index page where users login and the sessions are set:
0) {
$_SESSION['AdminLogin'] = true;
$_SES
2009/2/1 Terion Miller
> > >
> > > This is how it was originally written:
> > > if (empty($_SESSION['AdminLogin']) || $_SESSION['AdminLogin'] !=
> true){
> > > header ("Location: LogOut.php");
> > > $_SESSION['user']=$UserName;
> > > $_SESSION['AdminID']=$AdminID; <--*I added this on
> >
> > This is how it was originally written:
> > if (empty($_SESSION['AdminLogin']) || $_SESSION['AdminLogin'] != true){
> > header ("Location: LogOut.php");
> > $_SESSION['user']=$UserName;
> > $_SESSION['AdminID']=$AdminID; <--*I added this one originally the
> > script only used '
Terion Miller wrote:
> So now I have SESSIONs set: user, AdminID, AdminLogin
>
> but I'm trying to use them without showing them in links...currently the
> pages only load if I make the links like this:
>
> target="mainFrame">Home
>
> I thought the whole purpose of having/using Sessions is to
9 matches
Mail list logo