php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21757 session_register (); does not do it's job!
Submitted: 2003-01-19 15:38 UTC Modified: 2003-01-22 19:29 UTC
From: MDonatas at centras dot lt Assigned:
Status: Not a bug Package: Session related
PHP Version: 4.3.0 OS: Windows XP Pro
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: MDonatas at centras dot lt
New email:
PHP Version: OS:

 

 [2003-01-19 15:38 UTC] MDonatas at centras dot lt
Here is the simple peace of code with the link to the page itself. Session ID has to stay the same all the time as it is assigned to the browser window (this conclusion is made by my own experiance :) ). Tested with IE 6.0

//Start here
<?session_start ();?>
<html>
<head>
  <title></title>
</head>
<body>
<?php
  echo session_id ().'<br>';
?>
<a href="session_id.php">Test_Link</a>
</body>
</html>

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-19 17:52 UTC] kalowsky@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.


A) updating category.

B) Not enough info, and from what I can tell so far this is probably Bogus.  
 [2003-01-20 10:40 UTC] MDonatas at centras dot lt
Well, Previous version of PHP I used was 4.23 and everything went well. Now in PHP 4.3 session_register ('string'); or $_SESSION ["string"]; does not register these 'string' variables when going from one page to another. And by the way, echoing session_id (); in every new page you go to (using hyperlinks, not opening new IE window) it gives you different session ID and as far as I know that should not be changhing unless you open another browser window. Why don't you try registering variable and in another page writing if (session_is_registered ('string')) echo 'success';

I bet you won't see success though you should!
 [2003-01-20 13:54 UTC] iliaa@php.net
Does your php.ini allow PHP to set cookie session?
 [2003-01-22 10:11 UTC] MDonatas at centras dot lt
I don't know. I haven't changed any values but some paths so I could make ir work. everything other is left unchanged (default).
 [2003-01-22 19:29 UTC] sniper@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

php-general@lists.php.net

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 23:01:28 2024 UTC