Re: Re: SESSION and include

From: Date: Thu, 09 Feb 2006 11:55:30 +0000
Subject: Re: Re: SESSION and include
References: 1 2 3 4 5 6 7  Groups: php.general 
Request: Send a blank email to php-general+get-230149@lists.php.net to get a copy of this message
Fredrik Tillman wrote:
PROBLEM SOLVED! What I actually was including was a variable ($main) and since some my pages are called on from different pages in different folders what I actually did was seting $main to the full URL to the site (http://mysite.com/page.php) to avoid confusion. But when calling on a URL I guess PHP is set to drop $_SESSION variables... $main="../page.php"; require($main); Works fine. Thanks for all your time and help! /Fredrik That's why it is so important to post the source code.
Not rewriting it, post the code! Ths problem would have been solved after 2 mins if have known that the given path was a http path >_> Barry -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

« previous php.general (#230149) next »