Re: Sessions only work in SSL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Oct 18, 2010 at 8:46 PM, Daniel Houle <drhoule@xxxxxxxxxxx> wrote:
> I have a strange issue here. ÂI am running a CentOS machine, with
>
> apache 2.2.3
> php 5.1.6
> kernel 2.6.18-194.8.1.el5xen
>
> My sessions will work using https, but not using simple http. ÂI've compared
> my configs with another identical machine which works with both, and I can't
> figure out why. ÂAnyone got an idea?
>
> Here's the simple script I run to test.
>
> <?php
>
> session_start();
>
> echo 'session started';
>
> if (isset($_SESSION['name'])) {
> Âecho '<br />' . $_SESSION['name'];
> Âsession_destroy();
> } else {
> Âecho '<br />No session found';
> Â$_SESSION['name'] = 'My session';
> }
>
> phpinfo();
> ?>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

Are you sure session.cookie_secure is not turned on somewhere?

Andrew

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




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux