|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Sessions not starting
This may have been better off in the installation forum but here goes...
I don't think my web server is corrctly starting sessions! I am using a script that works perfectly on another web server, but on mine, the session variables are always empty which makes me think that they are not registering correctly. is there anything I need to change in the php.ini? |
|
#2
|
|||
|
|||
|
RE: Sessions not starting
How are you accessing the session variables?
|
|
#3
|
|||
|
|||
|
RE: Sessions not starting
$variable_name
I have a feeling that here may be a problem with PHP Sessions on Windows servers which is what I am using so I am now looking to find out how to resolve this if anyone can help? |
|
#4
|
|||
|
|||
|
RE: Sessions not starting
Newer installs of PHP have
in the ini file (it used to be on by default). Having it on was a security risk. You have a few choices. Change the php.ini on the server to be or, if you can use .htaccess files, create one with: or, don't touch either of those and do (this is what I would do) this in your code: You can also do: which will extract all the variables in those scopes into the local scope. (I don't like that solution myself). Cheers, Keith. |
|
#5
|
|||
|
|||
|
RE: Sessions not starting
Mmm register_globals = on in my php.ini
|
|
#6
|
|||
|
|||
|
RE: Sessions not starting
Verify or Set session.auto_start to on ?
|
|
#7
|
|||
|
|||
|
RE: Sessions not starting
that's on too!
|
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Coding > Sessions not starting |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|