|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
|
|
#1
|
||||
|
||||
|
Can't set the expiry for cookie
Hi everybody !
Could you tell me whats wrong in the following code: Quote:
It didnt work (server didnt sent the cookie to browser), but I wonder why its OK if I replace the above code with Quote:
whats the meaning of "3600" ? is it 3600 seconds or minutes or what ? Whats the code if I'd like to set a cookie which expire after 1 houre from current time ? Help me please ! Im using PHP 4.0.1p12 |
|
#2
|
|||
|
|||
|
To set a cookie use this code.
PHP Code:
for the time, you must use the time() function otherwise it is not a correct time stamp. The last 3 parameters are not required. check out URL for more information |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > Can't set the expiry for cookie |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|