You are here: Re: Domain Redirect - loses session variables « PHP Programming Language « IT news, forums, messages
Re: Domain Redirect - loses session variables

Posted by Gordon Burditt on 10/09/05 04:58

>I just purchased a new domain name and I've set it up as a redirect to a
>folder on my main site. What is happening is the index.php page checks a
>session variable to see if the user is logged on and if not it displays a
>login screen. However, after loggin in it just keeps coming back to the
>login screen because the session variables are getting lost.

Cookies set in one domain are *SUPPOSED* to get lost (or at least not
be sent to) a site in another domain. It's a security feature. It's
also not clear whether that's what you are doing or not.

>I inserted "session_write_close()" prior to the header("Location:
>Index.PHP)

Aren't redirects supposed to use ABSOLUTE (full path) URLs?

>and it now is working on my developement computer but on 2 other
>computers it is still just coming back to the login screen.

Gordon L. Burditt

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация