|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-07-09 21:37 UTC] scot at goldentroll dot com
[2003-07-09 21:51 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 13:00:01 2025 UTC |
Description: ------------ I am using the latest stable release 4.2.3 php_ini - session.use_trans_sid = on Session id's are being appended to all relative links upon first view regardless if cookies are available or not. I can't read a cookie that has been set until the page is reloaded. Reproduce code: --------------- session_start(); if (!$PHPSESSID)){ // PHPSESSID is the session name-hence name of variable set in session_start ini_set('session.use_trans_sid', true); }else { ini_set('session.use_trans_sid', false); } Expected result: ---------------- I would like to know if cookies are available to a page when it loads. I wish PHP did not append the links unless cookies are not available to store the session id and value Actual result: -------------- (!$PHPSESSID) will always be true until the page is reloaded.