Re: [PHP] problems with sessions variables and virtual domains in apache

2007-01-21 Thread Chris
esteban wrote: The don't want to pass the session variable across domains. The problem is in the main domain, i don't know what happens, the session variable lost the value or is distroyed. Track down where is happens with lots of 'error_log' and 'print_r' calls. Work out where it breaks then

Re: [PHP] problems with sessions variables and virtual domains in apache

2007-01-19 Thread esteban
The don't want to pass the session variable across domains. The problem is in the main domain, i don't know what happens, the session variable lost the value or is distroyed. "Chris" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] esteban wrote: > I have a windows 2000 server wi

Re: [PHP] problems with sessions variables and virtual domains in apache

2007-01-18 Thread Andre Dubuc
On Thursday 18 January 2007 06:26 pm, esteban wrote: > I have a windows 2000 server with apache 2.0 and php 5.1.2. I use session > variables to validate users, each page have something like this: > > if($_SESSION["validated"]==0){ > header("Location: index.php"); > exit; > } > > This worked fi

Re: [PHP] problems with sessions variables and virtual domains in apache

2007-01-18 Thread Chris
esteban wrote: I have a windows 2000 server with apache 2.0 and php 5.1.2. I use session variables to validate users, each page have something like this: if($_SESSION["validated"]==0){ header("Location: index.php"); exit; } This worked fine when i had only one domain, but when i began to u

[PHP] problems with sessions variables and virtual domains in apache

2007-01-18 Thread esteban
I have a windows 2000 server with apache 2.0 and php 5.1.2. I use session variables to validate users, each page have something like this: if($_SESSION["validated"]==0){ header("Location: index.php"); exit; } This worked fine when i had only one domain, but when i began to use virtual domain

[PHP] Problems with sessions .. qualified/non-qualified domain names

2006-01-03 Thread Kall, Bruce A.
I have diagnosed a problem with sessions I am having. I'm don't believe it's necessarily a PHP problem, but I thought someone must have seen this before. The first thing I do is a session_start() and then determine if (using session variables) whether the user has logged in successfully usi

Re: [PHP] problems with sessions!!AAH

2004-08-16 Thread Torsten Roehr
"Angelo Zanetti" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi Matt, > > The session_id() is correct on both pages. Some info I forgot to add is > this: > > on my first page: > > session_write_close(); > header("Location: franchise_menu.php?".SID); > exit(); > > however on my fra

Re: [PHP] problems with sessions!!AAH

2004-08-16 Thread Matt M.
> session_write_close(); > header("Location: franchise_menu.php?".SID); > exit(); SID will be empty if session ID was set in an appropriate session cookie if you do a print_r($_SESSION) on franchise_menu.php do you see anything? If you have access to the webserver you could just go in and look a

Re: [PHP] problems with sessions!!AAH

2004-08-16 Thread Angelo Zanetti
no I'm not using cookies. Session configuration values from php.ini: session.save_handler = files session.save_path = c:\temp\sessions session.use_cookies = 0 session.name = PHPSESSID session.auto_start = 0 session.cookie_lifetime = 0 session.cookie_path = / session.cookie_domain = sessio

Re: [PHP] problems with sessions!!AAH

2004-08-16 Thread Angelo Zanetti
Hi Matt, The session_id() is correct on both pages. Some info I forgot to add is this: on my first page: session_write_close(); header("Location: franchise_menu.php?".SID); exit(); however on my franchise_menu.php page, no SID is displayed in the browser address. could that be a reason? Or hav

Re: [PHP] problems with sessions!!AAH

2004-08-16 Thread Matt M.
On Mon, 16 Aug 2004 17:39:21 +0200, Angelo Zanetti <[EMAIL PROTECTED]> wrote: > ok I thought the problem was fixed but its not. The session variable > gets registered correctly however when I go to the next page and too see > if its still registered using the isset() function its not registered > a

Re: [PHP] problems with sessions!!AAH

2004-08-16 Thread Torsten Roehr
"Angelo Zanetti" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > ok I thought the problem was fixed but its not. The session variable > gets registered correctly however when I go to the next page and too see > if its still registered using the isset() function its not registered > an

RE: [PHP] problems with sessions!!AAH

2004-08-16 Thread Angelo Zanetti
ok I thought the problem was fixed but its not. The session variable gets registered correctly however when I go to the next page and too see if its still registered using the isset() function its not registered anymore. I do have session_start(); at the top of the new page. I cant think why its n

RE: [PHP] problems with sessions!!SOLVED!!

2004-08-16 Thread Angelo Zanetti
thanks MATT it appears that the isset function worked! >>> "Jay Blanchard" <[EMAIL PROTECTED]> 8/16/2004 4:46:16 PM >>> [snip] Ok here is what I do: $_SESSION['login']="true"; if (session_is_registered($_SESSION['login'])) echo("seesion is reg"); else

RE: [PHP] problems with sessions!!AAH

2004-08-16 Thread Jay Blanchard
[snip] Ok here is what I do: $_SESSION['login']="true"; if (session_is_registered($_SESSION['login'])) echo("seesion is reg"); else echo("seesion not reg"); I have not used the session_register function as the manual says the following: [/snip] Have

Re: [PHP] problems with sessions!!AAH

2004-08-16 Thread Matt M.
> if (session_is_registered($_SESSION['login'])) > echo("seesion is reg"); > else > echo("seesion not reg"); try if (isset($_SESSION['login'])) echo("seesion is reg"); else echo("seesion not reg"); -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] problems with sessions!!AAH

2004-08-16 Thread Angelo Zanetti
Hi, Im running a win2k with apache and PHP 4.3.4 and I have gone through the installation readme for PHP. I have copied the necessary files to the correct directories. I have also set register_globals= Off (default) I have set my session path (it exists). Now my problem is that I cant get my se

[PHP] Problems with sessions

2003-02-07 Thread John Almberg
I've got an odd problem . . . I've got a PHP site (PHP 4.2.2, Apache 1.3.26, Linux box) that uses sessions to track a user_id for each user. I use the user_id to grant various rights. This works like a dream 95% of the time. But every once in awhile, the session information gets lost. It's so r

[PHP] Problems with sessions

2002-10-30 Thread Tomas Kubis
Hello, I have big problem. I upgraded PHP from 4.1.2 to 4.2.3 and my scripts with doesn´t work. Please help me! in php.info register globals=On I have two sripts: first.php second.php In second.php ID is empty; but in previous version of php work it ok?? thanks Tomas Kubis -- PHP Gener

[PHP] problems with sessions (not working)

2001-10-27 Thread Christian Dechery
I have a file called miec.php that does quite a lot of processing and then include()s user_track.inc.php... miec.php: user_track.inc.php: -- the problem is why does it NEVER go into the 'else'... it seems that the session is registered... but as soon as I refres

[PHP] Problems with Sessions?

2001-09-06 Thread Tim
When I first browse to a site on my LAN, I get links with URLs that look like this: chat/?PHPSESSID=f3d149f79f5196bd709fb3c256dbb3d8 after a refresh, the whoe PHPSESSID goes away. Wondered if there was some setting in php.ini that I've overlooked? I'm running PHP4 with Apache on an Unstable De

[PHP] problems with sessions login/logout and frames

2001-06-21 Thread kaab kaoutar
Hi there! I'm happy the mailing lisi is finally activated :) Well guys, i've spent bad time using sessions with frames : i have a website that dislpays some tour products, and i have four frames in most of the pages! i have a logon button in the top frame where once clicked it asks for the log