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!!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,