Welcome! Log In Create A New Profile


session handling bug

Posted by onyxnz 
session handling bug
April 05, 2014 08:12PM
I am developing an application on my localhost that uses Nginx/PHP5-fpm from Dotdeb (Linux Neptune 3.3), and have come across a bug in the handling of assignment of session_id() that doesn't occur under Apache/Lightspeed with PHP (on my host server).

This code:
session_id($date . '-' . $userid . '-' . $_SESSION['till']);

has to be modified to be:

$_SESSION['id']=($date . '-' . $userid . '-' . $_SESSION['till']);

and then use the $_SESSION['id'] instead of the true session_id().

The symptom is that the session is destroyed when going to the next page.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 126
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready