pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter <peterh@600ml.com.au>
To: PostgreSQL PHP <pgsql-php@postgresql.org>
To: PostgreSQL SQL <pgsql-sql@postgresql.org>
Subject: PHP session issue
Date: Wed, 19 Sep 2001 10:50:33 +1000
Message-ID: <010201c140a5$32921320$0300000a@600mlPeterPC1> (raw)
References: <00ab01c13a9d$950761d0$1301a8c0@uimagen>
	<002801c13ac0$ae8a0fe0$330a0a0a@rutgersinsurance.com>
	<013f01c13b5f$c5c098b0$1301a8c0@uimagen>

Hi there,

I have a bizaare problem:

Actually a PHP session issue but if there are any quick suggestion it would
be very much appreciated
I've got php running on a win 2k machine and IIS
I am authenticating access to admin pages via an operator variable which
must be set and is registered with the current session
If I access the pages on the localhost machine it works fine:
I login it jumps to the required page and grants access because the username
and pasword were validated against the PostgreSQL database and the operator
variable was set accordingly

But if I go through the same proceedure from a different computer win98
machine it doesn't grant me access to the page it jumps to the right page
but returns me to the login page with a "NO ACCESS" error as it should if
the operator id is not set

the weird thing is when I look at the sessions that get created:
the operator variable did actually get set BUT for some reason when it jumps
to the required page after the login it creates a new session file with no
entries at all - blank
the old one actually contains the set operator variable but gets disregarded
because the page now looks at the empty session and therefor denies access??

I have no idea what is causing this
anybody have any ideas? would be greatly appreciated

thanks, Peter




Message-ID: <010201c140a5$32921320$0300000a@600mlPeterPC1>
Permalink:  ../010201c140a5$32921320$0300000a@600mlPeterPC1/
Also on:    postgresql.org/message-id/010201c140a5$32921320$0300000a@600mlPeterPC1

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: peterh@600ml.com.au, pgsql-php@postgresql.org
  Subject: Re: PHP session issue
  In-Reply-To: <010201c140a5$32921320$0300000a@600mlPeterPC1>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox