Bluehost.com Web Hosting $6.95

Session Passing Problem

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 ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-10-2006
z80Hastings
 
Posts: n/a
Default Session Passing Problem

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


Reply With Quote
  #2 (permalink)  
Old 01-10-2006
z80Hastings
 
Posts: n/a
Default Re: Session Passing Problem

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
>



Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 03:23 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0