From:             leandroregal at gmail dot com
Operating system: red hat 9.0
PHP version:      4.3.10
PHP Bug Type:     Session related
Bug description:  rescuing the session

Description:
------------
i'm having problems to set a session with password, i cant create a
session with any value. it seems as it was not been registered. when i go
to the next page to verify the creation of session return no confirmation
of any session. i have the PHPLIVESUPPORT installed and it uses the
session to save the session login but neither this software works and in
other servers the same software works.

Reproduce code:
---------------
// page1.php

session_start();

echo 'Bem vindo a pagina #1';

$_SESSION['favcolor'] = 'green';
$_SESSION['animal']   = 'cat';
$_SESSION['time']     = time();

// Funciona se o cookie de seção foi aceito
echo '<br /><a href="page2.php">page 2</a>';

// Ou talves passando o ID da seção se necessário
echo '<br /><a href="page2.php?' . SID . '">page 2</a>';
============================
// page2.php

session_start();

echo 'Bem vindo a pagina #2<br />';

echo $_SESSION['favcolor']; // green
echo $_SESSION['animal'];   // cat
echo date('Y m d H:i:s', $_SESSION['time']);

// Você pode querer usar o SID aqui, como fissemos em page1.php
echo '<br /><a href="page1.php">page 1</a>';


Expected result:
----------------
i expected that in both links the value of session can be rescued but only
whith SID (2º link in page1.php) this works.

Actual result:
--------------
only with this header the session works
http://domain.com.br/page2.php?PHPSESSID=e35459b9a47b0ead914cf331243f1275

-- 
Edit bug report at http://bugs.php.net/?id=33460&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=33460&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=33460&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=33460&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=33460&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=33460&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=33460&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=33460&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=33460&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=33460&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=33460&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=33460&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=33460&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=33460&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=33460&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=33460&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=33460&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=33460&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=33460&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=33460&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=33460&r=mysqlcfg

Reply via email to