sessions and domain names by ps94506

VIEWS: 9 PAGES: 1

									                                       sessions and domain names

sessions and domain names

Source: http://coding.derkeiler.com/Archive/PHP/comp.lang.php/2006−10/msg01754.html



      • From: "magic_hat60622" <magic_hat60622@xxxxxxxxx>
      • Date: 26 Oct 2006 16:54:56 −0700

Hi all. I've got an app that dumps a user id into a session after
successful login. the login page is http://www.mydomain.com/login.php.

If the user visits pages on my site without the www (i.e.,
http://mydomain.com/foo.php), the session works fine and login state is
maintained.

If he visits http://www.mydomain.com/foo.php, the app drops the
logged−in state.

Any idea how to fix this? I'm running php 4.4.1 w/ linux apache.

.




sessions and domain names                                                             1

								
To top