Date: 01/30/01
- Next message: A.C.N.S. Information and News: "[phplib] Re: NO COOKIES (was: [phplib] PHPLib and frames examples?)"
- Previous message: John Sutton: "Re: [phplib] Security Risk: Session ID in server logs"
- In reply to: A.C.N.S. Information and News: "Re: [phplib] PHPLib and frames examples?"
- Next in thread: A.C.N.S. Information and News: "[phplib] Re: NO COOKIES (was: [phplib] PHPLib and frames examples?)"
- Reply: A.C.N.S. Information and News: "[phplib] Re: NO COOKIES (was: [phplib] PHPLib and frames examples?)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I always resort to sniffing the port to see if the browser is *really* doing
what I think it should be doing! Nine times out of ten, it's not ;-( You
really need to find out if the browser *is* sending the cookie on the second
hit. Cookie domain/path?
On Tue, 30 Jan 2001, A.C.N.S. Information and News wrote:
> Well, have got everything working now.
>
> The only problem is that phplib only works with get and not cookies. What's
> really weird is that the server is an Apache server on Unix not an IIS
> server. Thus far I have only seen IIS servers have this problem. Any
> ideas? I had initially set cookies as the default functionality in the
> local.inc file but the switched to get to test if it would work that way. I
> can get the initial sid in cookie mode but then lose it after I click on a
> link and a cookie is never sent. In get mode it works fine.
>
> Check www.acns-online.com/shop/index.php3 to verify.
>
> Chuck
>
> ----- Original Message -----
> From: "John Sutton" <john <email protected>>
> To: "A.C.N.S. Information and News" <infomail <email protected>>
> Cc: <phplib <email protected>>
> Sent: Tuesday, January 30, 2001 12:16 PM
> Subject: Re: [phplib] PHPLib and frames examples?
>
>
> > Yes, it's a complete bitch because AKAIK each frame will submit the same
> > session cookie, there is no general way to identify which frame has
> submitted
> > which submission, there is no guaranteed *order* in which
> > a browser will make the multiple submissions involved when it loads the
> frames
> > in a frameset, and (the real killer) the submissions can run concurrently.
> >
> > Careful analysis and coding can get you over the first three hurdles, the
> real
> > killer that I encountered was dealing with the concurency problem. I
> solved
> > this by overriding get_lock() and release_lock() in session.inc (in an old
> > version of phplib, nowadays in ct_sql.inc and friends):
> >
> > // Overriding these two functions renders $database_lock_semaphore
> > // redundant.
> > function get_lock() {
> > $lockstr = 'WDBA/'.config_info('database').'/'.$this->id;
> > while (!mysql_result($this->db->query("select
> get_lock('$lockstr',5)"),0,0))
> > ;
> > }
> >
> > function release_lock() {
> > $lockstr = 'WDBA/'.config_info('database').'/'.$this->id;
> > $this->db->query("select release_lock('$lockstr')");
> > }
> >
> > The problem with the default implementation of these functions is that
> there was
> > no easy way to get the sessionid into $database_lock_semaphore. At least,
> that
> > was true when they were in session.inc. Maybe it's possible now that they
> have
> > been moved into ct_sql.inc?
> >
> > The key is that you must lock the db with the sessionid so that multiple
> > concurrent hits from a frameset cannot interfere with each other.
> >
> > YMMV!
> >
> > On Tue, 30 Jan 2001, you wrote:
> > >
> > > Is there anyone out there that has some examples of using phplib with
> frames? If so could you please send 'em my way. I'm having unbelievable
> problems with getting phplib to work correctly with frames. Thanks.
> > >
> > > Chuck
> > >
> >
> > --
> >
> > ***************************************************
> > John Sutton
> > SCL Computer Services
> > URL http://www.scl.co.uk/
> > Tel. +44 (0) 1239 621021
> > ***************************************************
--*************************************************** John Sutton SCL Computer Services URL http://www.scl.co.uk/ Tel. +44 (0) 1239 621021 ***************************************************
--------------------------------------------------------------------- To unsubscribe, e-mail: phplib-unsubscribe <email protected> For additional commands, e-mail: phplib-help <email protected>
- Next message: A.C.N.S. Information and News: "[phplib] Re: NO COOKIES (was: [phplib] PHPLib and frames examples?)"
- Previous message: John Sutton: "Re: [phplib] Security Risk: Session ID in server logs"
- In reply to: A.C.N.S. Information and News: "Re: [phplib] PHPLib and frames examples?"
- Next in thread: A.C.N.S. Information and News: "[phplib] Re: NO COOKIES (was: [phplib] PHPLib and frames examples?)"
- Reply: A.C.N.S. Information and News: "[phplib] Re: NO COOKIES (was: [phplib] PHPLib and frames examples?)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

