TorrentFlux.com Welcome, Guest. Please login or register.
03-22-2010, 05:04:10
Home Help Search Login Register donate
TorrentFlux Home | TorrentFlux Hosting

+  TorrentFlux Forums
|-+  Bugs, Fixes, and Feature Requests
| |-+  Linux Bugs
| | |-+  Wrong use of session_start
« previous next »
Pages: [1] Go Down Print
Author Topic: Wrong use of session_start  (Read 1360 times)
m
Guest
« on: 04-30-2006, 11:55:59 »

Hello.

I lost my last forum account but I was the one who originally reported that TF needed to set a specific session name/id in order to avoid conflicts with other PHP apps. I just installed TF 2.1 and came across the problem again. The reason is that you try to set the session name in combination with the session_start method call:

Code:
session_start("TorrentFlux");

This is wrong, as session_start takes a void argument: http://php.net/session_start . In fact, the above has no effect on the session name. You must use session_name instead, as follows:

Code:
session_name("TorrentFlux");
session_start();

Good luck; you've written a great piece of software!

M
Logged
Qrome
Administrator
Hero Member
*****
Offline Offline

TF Base: Linux 2.x
Posts: 2783


TorrentFlux.com





View Profile
« Reply #1 on: 04-30-2006, 12:15:12 »

Thanks, it has not really been an issue.   I also updated the codebase to use the correct session_write_close().

Thanks.
Logged

Check out the new FireFox Extension by IceWind for TorrentFlux called TorrentFlux Add -- right click on torrents and have them added to your TorrentFlux list.
Pages: [1] Go Up Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by SMF 1.1.1 | SMF © 2006, Simple Machines LLC Powered by PHP