This is a discussion on Session Passing Problem within the alt.comp.lang.php forums, part of the PHP Programming Forums category; I have a test website running on an Win2K Box (Apache/MySQL and PHP), I'm accessing from a WinXP ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I have a test website running on an Win2K Box (Apache/MySQL and PHP), I'm
accessing from a WinXP client. It uses frames and the 'main' frame will sometimes check a session variable and re-direct depending on its value (echo'ing 'Location:???? to browser). All works perfectly okay (session variables are readable by the re-direct page when it is loaded). I've now copied this to a WinXP Laptop to be able to take off-site and show people. Problem is the re-direct is working on this machine (is it due to the Server/Client being on same PC and causing a problem with Sessions?). The first page can read Session variables fine; but now the re-direct page is reading all session variables as empty. Anyone have any ideas? -- Kevin |
|
|||
|
Sorry; found the problem (had been searching for hours..typical I find it
not long after posting!). Had a reference to the old servername in the redirect; replaced with local IP 127.0.0.1 and all works. -- Kevin T: 01424 438546 M: 0787 5981691 E: klh@klhpublications.co.uk W: www.klhpublications.co.uk | www.docarchive.co.uk "z80Hastings" <anon@anon.com> wrote in message news:43c3849d$0$31947$6d36acad@roc.nntpserver.com. .. >I have a test website running on an Win2K Box (Apache/MySQL and PHP), I'm > accessing from a WinXP client. It uses frames and the 'main' frame will > sometimes check a session variable and re-direct depending on its value > (echo'ing 'Location:???? to browser). All works perfectly okay (session > variables are readable by the re-direct page when it is loaded). > I've now copied this to a WinXP Laptop to be able to take off-site and > show > people. Problem is the re-direct is working on this machine (is it due to > the Server/Client being on same PC and causing a problem with Sessions?). > The first page can read Session variables fine; but now the re-direct page > is reading all session variables as empty. Anyone have any ideas? > > > -- > Kevin > |