|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today! |
|
#1
|
|||
|
|||
|
PHPSESSID not defined
Hi,
I run win XP and apache 2.0.43. When I use $PHPSESSID I get an error as below. Can anyone tell me why I get it? Notice: Undefined variable: PHPSESSID in C |
|
#2
|
|||
|
|||
|
RE: PHPSESSID not defined
Quote:
You are not assigning a value to the variable before you use/test it. I am guessing you are using sessions, and have called session_start(). You can then load the value from the $_SESSION array. |
|
#3
|
|||
|
|||
|
RE: PHPSESSID not defined
you could also use
$PHPSESSID = session_id(); |
|
#4
|
|||
|
|||
|
RE: PHPSESSID not defined
Hi Opus,
Thank you for your reply I put the code you suggested straight after the line and then got the error below when I ran it Notice: Undefined index: PHPSESSID in C |
|
#5
|
|||
|
|||
|
RE: PHPSESSID not defined
Blindeddie,
thanks for that, it resolved the notice, and the information is being added to the database as it should now Many thanks |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Installation > PHPSESSID not defined |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
![]() |
|