Bluehost.com Web Hosting $6.95

Re: [PHP] $_SESSION NOT WORKING

This is a discussion on Re: [PHP] $_SESSION NOT WORKING within the PHP General forums, part of the PHP Programming Forums category; On Tue, May 13, 2008 at 2:38 PM, Balpo <balpo@gmx.net> wrote: > Hi everyone, > ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-13-2008
Daniel Brown
 
Posts: n/a
Default Re: [PHP] $_SESSION NOT WORKING

On Tue, May 13, 2008 at 2:38 PM, Balpo <balpo@gmx.net> wrote:
> Hi everyone,
> I'm having a problem moving my code to a linux computer.
> I won't post the whole code here, but an accurate example that reproduces
> exactly the error.

[snip!]

Modify 2.php as follows:

<?php
session_start();
print_r($_SESSION);
?>

You only missed instantiating the session. The rest looks good.

--
</Daniel P. Brown>
Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just
$59.99/mo. with no contract!
Dedicated servers, VPS, and hosting from $2.50/mo.
Reply With Quote
  #2 (permalink)  
Old 05-13-2008
Thiago Pojda
 
Posts: n/a
Default RES: [PHP] $_SESSION NOT WORKING


Actually his question was about why session.auto_start is not working on
Linux, I almost answered what you both did :)


Atenciosamente,

www.softpartech.com.br


Thiago Henrique Pojda
Desenvolvimento Web
+55 41 3033-7676
thiago.pojda@softpartech.com.br
Excelência em Softwares Financeiros


-----Mensagem original-----
De: Daniel Brown [mailto:parasane@gmail.com]
Enviada em: terça-feira, 13 de maio de 2008 16:43
Para: Balpo
Cc: PHP General
Assunto: Re: [php] $_SESSION NOT WORKING

On Tue, May 13, 2008 at 2:38 PM, Balpo <balpo@gmx.net> wrote:
> Hi everyone,
> I'm having a problem moving my code to a linux computer.
> I won't post the whole code here, but an accurate example that reproduces
> exactly the error.

[snip!]

Modify 2.php as follows:

<?php
session_start();
print_r($_SESSION);
?>

You only missed instantiating the session. The rest looks good.

--
</Daniel P. Brown>
Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just
$59.99/mo. with no contract!
Dedicated servers, VPS, and hosting from $2.50/mo.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Reply With Quote
  #3 (permalink)  
Old 05-14-2008
Thiago Pojda
 
Posts: n/a
Default RES: $_SESSION NOT WORKING --SOLVED


I never heard of such extension. You should report this bug :)

And you're welcome ;)



Atenciosamente,
www.softpartech.com.br
Thiago Henrique Pojda
Desenvolvimento Web
+55 41 3033-7676
thiago.pojda@softpartech.com.br
Excelência em Softwares Financeiros

-----Mensagem original-----
De: Balpo [mailto:balpo@gmx.net]
Enviada em: terça-feira, 13 de maio de 2008 23:09
Para: Thiago Pojda
Cc: 'Daniel Brown'; 'PHP General'
Assunto: Re: $_SESSION NOT WORKING --SOLVED
Prioridade: Alta

After an all-evening debugging I found out what the problem is.

Why? Please don't ask. I have no idea.

The problem was php's extension php-colorer

How I got to the problem. Eliminating every extension until I got the
*bad* one.

Thank you: Daniel, Thiago, Jens, Verny & Dmitri for your concern.

Balpo

Thiago Pojda wrote:
> Actually his question was about why session.auto_start is not working on
> Linux, I almost answered what you both did :)
>
>
> Atenciosamente,
>
> www.softpartech.com.br
>
>
> Thiago Henrique Pojda
> Desenvolvimento Web
> +55 41 3033-7676
> thiago.pojda@softpartech.com.br
> Excelência em Softwares Financeiros
>
>
> -----Mensagem original-----
> De: Daniel Brown [mailto:parasane@gmail.com]
> Enviada em: terça-feira, 13 de maio de 2008 16:43
> Para: Balpo
> Cc: PHP General
> Assunto: Re: [php] $_SESSION NOT WORKING
>
> On Tue, May 13, 2008 at 2:38 PM, Balpo <balpo@gmx.net> wrote:
>
>> Hi everyone,
>> I'm having a problem moving my code to a linux computer.
>> I won't post the whole code here, but an accurate example that

reproduces
>> exactly the error.
>>

> [snip!]
>
> Modify 2.php as follows:
>
> <?php
> session_start();
> print_r($_SESSION);
> ?>
>
> You only missed instantiating the session. The rest looks good.
>
>




Reply With Quote
  #4 (permalink)  
Old 05-14-2008
Daniel Brown
 
Posts: n/a
Default Re: $_SESSION NOT WORKING --SOLVED

On Wed, May 14, 2008 at 9:47 AM, Thiago Pojda
<thiago.pojda@softpartech.com.br> wrote:
>
> I never heard of such extension. You should report this bug :)
>
> And you're welcome ;)


I agree, Balpo. You should submit the details of your findings at
http://bugs.php.net/ and let us check it out.

--
</Daniel P. Brown>
Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just
$59.99/mo. with no contract!
Dedicated servers, VPS, and hosting from $2.50/mo.
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 05:20 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0