Proplems with PHP sessions |
Site Admin
|
Actually neither Debugger nor IDE are involved.
They are not responsible for starting php sessions and would never be. Please check you php configuration, in particular session.auto_start and session.save_path settings. |
||||||||||||
|
|
On the windows platform the session.auto_start is set to 1 and session.save_path= / . these are the same settings for when I run it through the IDE as well as when I call it directly. I have added a way to run phpinfo() form my application to make sure things are set up as expected.
The thing is that everything works if just using the browser or pre-loading the start page before debugging. The problem with the sessions only exists if debugging from within the IDE. |
||||||||||||
|
Site Admin
|
Just to make it clear.
In no way phped's debugger affects PHP sessions. If you get a problem with sessions under Windows, check the settings. If you get problem only while working in the IDE, check php.ini settings of the php that the IDE works with. Check phpinfo results while you're in the IDE. Again IDE itself has no way to affect php sessions. It must be something wrong with php.ini. Start checking with "path to php.ini" you see in phpinfo() output produced while you're in the IDE. Make sure you're editing php.ini listed in phpinfo. Check other session-related stuff. Having root directory as storage for session files is wrong idea. When installs PHPED configures its own path to the sessions, by default c:\program files\nusphere\phped\php\sessions. Is there any reason for changing this setting? Also make sure that session.save_handler is still 'files'... etc. If you want us to help you, please submit phpinfo() output, php.ini and script to replicate the problem. |
||||||||||||
|
RE: Proplems with PHP sessions |
|
tmose,
I had a similar problem in that the internal browser kept it's session data even after I closed the output tab (at which point I considered the session 'closed'). Anyway I would rerun the page and the data would still be there. The following code took care of my problem and it may help you avoid external browsers or shutting down the IDE just to clear your session data if your problem is similar: // logout.php
All the best |
||||||||||||||
|
Site Admin
|
no, session won't be closed with closing the tab. Indeed, all kind of sessions for the web applications are based on cookies. In most cases, session cookies are temporary and therefore they belong to the process. If you open a browser, start a session, then open new window with Ctrl+N, session will be in-effect for the 2nd browser window too because it runs in the same process. Now if you close original window, nothing will change for the 2nd window because the process keeps going. Same goes to the IDE. Even if you close Output window, the process (the IDE) is still running and therefore temporary cookies are not dropped. You need another way by which you'll destroy the session (for example logout link on the page) or use external browser. |
||||||||||||||
_________________ The PHP IDE team |
Proplems with PHP sessions |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by