Re: Tale of woe
- From: "Vince Morgan" <vinhar@xxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 30 Oct 2006 19:25:12 +1000
"The Eclectic Electric" <nospam@xxxxxxxxxxxxxx> wrote in message
news:PKp0h.5018$RR2.354@xxxxxxxxxxxxxxxxxxxxxxx
I'm a PHP noob and just thought I'd quickly relay my latest tale of woe.As
an erstwhile professional programmer I like to research/fix things myselfa
whenever possible, even if this means - as it did today - bashing my
cold-addled head against a brick wall for hours on end. I'm sure everyone
has at least one similar story.
Anyway, yesterday I started to implement sessions on my site. I'd set up
user on my user database as was very proud when I could log myself in.Then
I set about transferring the data from the user table to session variableswas
and changing all the places I'd put in temporary hard-coded values. It
very exciting. Then I tried to login again and that was fine, but when Iat
hit the main page, it had all gone very badly wrong.
To cut a long story short, I spent the best part of 24 hours (have a cold
the minute so didn't sleep much) flaggin things and adding things andtaking
things away and going through about a ton of online documentation andmy
problem forums wondering why on Earth no one else had been suffering with
problem - the session ID was being propagated between pages but theOne day in the, hopefully, distant futer, I will remember this post :)
variables were not. Then suddenly I discovered the problem: I'd become
convinced for some reason that the session global array was $S_SESSION[].
Every supposed session variable on the site was set to this. So it was
always showing up within the same script when I was echoing it (as it's a
valid identifier), but not when new scripts were invoked. I'm now taking
the rest of what's left of the week (about 20 minutes) off!!!
+e
Hope you enjoyed that 20 mins to the full!
Vince Morgan
.
- References:
- Tale of woe
- From: The Eclectic Electric
- Tale of woe
- Prev by Date: Re: Please Help! - PHP 5 + APACHE 2.2 + ORACLE 10.2 on windows box
- Next by Date: Re: combination events
- Previous by thread: Re: Tale of woe
- Next by thread: Re: php5apache2.dll
- Index(es):
Relevant Pages
|