NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
TechPlat & session handling


Joined: 21 Nov 2003
Posts: 39
Reply with quote
Hello,

I reinstalled TechPlat 3.2 and now discovered that session handling is invalid. I created a simple page and refreshed it, the session_id() return a new id every time (while running this in PhpED, the id remains constant)
I have identical settings for session handling in both PhpED's php.ini and TechPlat's php.ini.
TechPlat just doesn't continue existing session, just creates a new one. Now I have flooded the session folder with lots of empty sessionfiles Surprised
View user's profileFind all posts by netgertSend private messageVisit poster's websiteMSN Messenger


Joined: 21 Nov 2003
Posts: 39
Reply with quote
Comparisons that I made
Code:

D:\Delphi\INIFC>INIFC "F:\NuSphere\PhpED\php\php.ini" "F:\NuSphere\TechPlat\apac
he\php.ini"
*** F:\NuSphere\PhpED\php\php.ini ***
[PHP] max_execution_time = 300     ; Maximum execution time of each script, in s
econds
[PHP] include_path = ".;..\include_lib"
[PHP] extension_dir = "extensions"
[PHP] extension = php_dbg.dll-4.3.4
[Session] session.save_path = F:\NuSphere\PhpED\php\sessions

*** F:\NuSphere\TechPlat\apache\php.ini ***
Section not found: Debugger
[PHP] max_execution_time = 300
[PHP] include_path = "."
[PHP] extension_dir = F:/NuSphere/TechPlat/apache/php/extensions
[PHP] extension = php_pgsql.dll
Key not found: [mail function] sendmail_from
[Session] session.save_path = F:\NuSphere\TechPlat\apache\php\sessions

Code:

D:\Delphi\INIFC>INIFC "F:\NuSphere\TechPlat\apache\php.ini" "F:\NuSphere\TechPla
t\apache\php\php.ini"
INIFC: No differences encountered

I made a special program for this, called INIFC

Any help?
View user's profileFind all posts by netgertSend private messageVisit poster's websiteMSN Messenger
Site Admin

Joined: 13 Jul 2003
Posts: 8334
Reply with quote
check the following
-you added a call to session_start() before session_id()
-you enabled cookies in your browser or passed session id with links and/or variables (hiddens) to get it back with GET / POST.
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 21 Nov 2003
Posts: 39
Reply with quote
negative for both, but i solved it now Embarassed
there was a problem with session.save_path & register_globals, these were correct later but i hadn't restarted apache (damn, i didn't need to do this when php was run as a cgi executable)
View user's profileFind all posts by netgertSend private messageVisit poster's websiteMSN Messenger
TechPlat & session handling
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic