FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Open Session Variables
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Open Session Variables [message #171256 is a reply to message #171208] Wed, 29 December 2010 21:24 Go to previous messageGo to previous message
me is currently offline  me
Messages: 192
Registered: September 2010
Karma:
Senior Member
On 12/29/2010 9:55 AM, Captain Paralytic wrote:
> On Dec 29, 2:48 pm, Denis McMahon<denis.m.f.mcma...@googlemail.com>
> wrote:
>> On 29/12/10 13:33, Bill Braun wrote:
>>
>>> I am new to PHP coding. At the end of a series of scripts (the series
>>> being a function of a number of header and include calls) is there a way
>>> to know what session variables are still set? I am running into an
>>> intermittent error "Warning: session_start() [function.session-start]:
>>> Node no longer exists in file.php on line X" and I suspect that I am
>>> failing to destroy or unset some session variables.
>>
>>> I think I have the variables properly destroy()'d and/or unset() but the
>>> error make me suspicious I've overlooked something.
>>
>> try googling "php Node no longer exists"
>>
>> It's a good start. In fact, for any programming language these days,
>> googling "<language> <error message text>" will usually throw up
>> something helpful.
>
> I made the generous assumption that, despite being new to php coding,
> the OP nevertheless had enough intelligence to put the error message
> into Google and to have noted that all the popular hits stated this
> being a problem with SimpleXML. If he did not then maybe programming
> simply isn't for him.

The PHP error can be avoided if the browser is closed then reloaded
between running the scripts. That suggested to me, for what I know, that
there is is something in the session might be unset or destroyed within
the script, doing away with the need to close and reload the browser,
and avoid the error.

I had, as you rightly suggested, done some research before posting here.
I knew of the SimpleXML explanation. What I had not yet learned was if
there was some way to unset the session or destroy variables in such
fashion that the error would not occur. Thus my desire to see a list of
the session variables that were still set at the end of the script.

It may not, from an experienced programmers perspective, been very
logical to approach the problem from the direction I did. That is part
of learning. If you wish, I'm sure I can ask you some questions that do
not appear in the first 5 google responses, and then bully you for being
less than intelligent.

Deep breath, Captain, none of this is really all that important. Happy
New Year.

Bill B
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: initial value
Next Topic: php mail( )
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 19:47:50 GMT 2024

Total time taken to generate the page: 0.04846 seconds