|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today! |
|
#1
|
||||
|
||||
|
PHP Version 4.3.2 and cookies
Is there any special concerns I need to know about with PHP Version 4.3.2 and setting cookies? I put my working site on a new server with PHP Version 4.3.2 and now the cookies aren't setting.
I tried setting them with just the cookie name and value with no expiration - no luck. I tried with the forementioned and "0" expiration - no luck! What gives?
__________________
$mybrain = "mush"; ------------------------------------------- http://www.loftsboston.com http://www.gregdawsondesign.com |
|
#2
|
|||
|
|||
|
============
Questions ============ 1. What version are you coming from? 2. Post some code showing how you are setting cookies Initially, I see there is a problem with your expiration date as PHP expects to see an "INTEGER" value there, not a quoted zero "0". When PHP encounters this STRING you will get errors (depending on your Error Reporting Level). ============ Answers ============ 1. Older versions of PHP did not care if you specified an integer or string value... make sure you're code does not reflect this. 2. A valid cookie setting statement looks similar to the following: PHP Code:
__________________
__________________________________________________ _ Wil Moore III, MCP | Integrations Specialist | Senior Consultant Are You Listed...? | DigitallySmooth Inc. |
|
#3
|
||||
|
||||
|
Good lookin' out, laidbak!
Right on the money! Thanks! |
|
#4
|
|||
|
|||
|
Not a problem mojo...
![]() |
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > PHP Version 4.3.2 and cookies |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|