Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
September 21, 2006, 2:22 am
rate this thread
I have a site hosted in a local server. I have physic access to this
server and its configuration.(apache, php,files...).
I have external access to the web site by typing the public ip address
of the local server.
I have a domain too, and this domain is redirected to the static public
ip of the local server so when I type (out of the local server net) the
domain in a web explorer I surf to the content of the local server
(like typing the public ip).
I have observed with the redirection configuration, that when I click
on elements of the page that propagate parameters, this it is not
reflected in the address.
I have a link that points to http://www.mysite.com/link.php .
When I click on this link I go to the link but the explorer address is
always http://www.mysite.com .
However in the link properties I can see that this link points to
http://my local ip/link.php.
This doesn.t happen if I go to my site using the public Ip.
This is the problem:
I have the typical login form.When the data submitted is ok, the login
name is saved in a session variable.To check if the active visitor is
logged in, I check the existence of this session variable every page
This works ok in the local server.
Using the public ip address works ok too.
But when I use the domain direction this does not work in Internet
explorer (I have tried in different computers). but in Mozilla it does
work. I think Internet explorer configuration is not letting session
variables to be propagated with the redirection.
Thanks for reading.
Re: Session Variables and Domain Redirection Problem
Session id's are stored as cookies by default (depends on browser
settings). And one domain cannot read a cookie set by another domain.
To be able to do so would be a huge security hole.
Remove the "x" from my email address
JDS Computer Training Corp.